CCeSocket::Create

This member function creates the Windows socket after a socket object is constructed, and attaches it to the CCeSocket object. Create then calls Bind to bind the socket to the specified address.

Syntax

virtual BOOL Create ( UINT nSocketPort=0 );

At a Glance

Header file: Wcesock.h
Platforms:
Versions: 2.0 and later

Parameters

nSocketPort
A well-known port to be used with the socket, or zero if you want Windows Sockets to select a port.

Return Values

TRUE if the socket was successfully created; FALSE if the operation failed.

Remarks

If the socket is a listening socket, this function also ensures that the socket is open for reading.

See Also

CCeSocket Overview, CCeSocket Member Functions, Windows Sockets Classes, CAsyncSocket::Attach, CAsyncSocket::Bind, CCeSocket::CCeSocket