CSocket::Create

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.

Syntax

BOOL Create( UINT nSocketPort = 0, int nSocketType = SOCK_STREAM, LPCTSTR lpszSocketAddress = NULL );

At a Glance

Header file: Afxsock.h
Platforms:
Versions: 2.0 and later
Complete documentation Visual C++ documentation

See Also

CSocket Overview, CSocket Member Functions, Windows Sockets Classes, CAsyncSocket::Create, CAsyncSocket::Bind