CCeSocket::CCeSocket

Use this constructor to construct a socket object. When you construct a CCeSocket object, specify whether it is a listening socket or a data socket. After construction, you must call the Create member function.

Syntax

CCeSocket ( PURPOSE_E iPurpose=FOR_DATA );

At a Glance

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

Parameters

iPurpose
An enumerated constant that specifies whether the socket is to be a listening socket or a data socket. The possible values are:

FOR_LISTENING

FOR_DATA

Remarks

If you do not specify the purpose of the socket, the constructor constructs a data socket by default.

See Also

CCeSocket Overview, CCeSocket Member Functions, Windows Sockets Classes, CCeSocket::Create