Call this member function after constructing a socket object to create the Windows socket and attach it. Create then calls Bind to bind the socket to the specified address.
BOOL Create( UINT nSocketPort = 0, int nSocketType = SOCK_STREAM, LPCTSTR lpszSocketAddress = NULL );
| Header file: | Afxsock.h |
| Platforms: | |
| Versions: | 2.0 and later |
| Complete documentation | Visual C++ documentation |
CSocket Overview, CSocket Member Functions, Windows Sockets Classes, CAsyncSocket::Create, CAsyncSocket::Bind