CCeSocket::Create

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

At a Glance

Header file: Wcesock.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 2.0 and later

Syntax

virtual BOOL Create ( UINT nSocketPort=0 );

Parameters

nSocketPort
Well-known port to be used with the socket, or zero if Windows Sockets selects a port.

Return Values

TRUE indicates that the socket was successfully created. FALSE indicates that the operation failed.

Remarks

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

See Also

CAsyncSocket::Attach, CAsyncSocket::Bind, CCeSocket::CCeSocket