BOOL Create( UINT nSocketPort = 0, int nSocketType = SOCK_STREAM, LPCTSTR lpszSocketAddress = NULL ); Parameters nSocketPort A particular port to be used with the socket, or 0 if you want MFC to select a port. nSocketType SOCK_STREAM or SOCK_DGRAM. lpszSocketAddress A pointer to a string containing the network address of the connected socket, a dotted number such as "128.56.22.8". Passing the NULL string for this parameter indicates the CSocket instance should listen for client activity on all network interfaces.
UINT nSocketPort = 0,
int nSocketType = SOCK_STREAM,
LPCTSTR lpszSocketAddress = NULL
);
Parameters
nSocketPort
A particular port to be used with the socket, or 0 if you want MFC to select a port. nSocketType
SOCK_STREAM or SOCK_DGRAM. lpszSocketAddress
A pointer to a string containing the network address of the connected socket, a dotted number such as "128.56.22.8". Passing the NULL string for this parameter indicates the CSocket instance should listen for client activity on all network interfaces.