CSocket::Create

This method is called 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.

At a Glance

Header file: Afxsock.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation Visual C++ documentation

Syntax

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

See Also

CAsynCSocket::Create, CAsynCSocket::Bind