CCeSocket::CCeSocket

This constructor constructs a socket object. When constructing a CCeSocket object, specify whether it is a listening socket or a data socket. After construction, call the Create method.

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

CCeSocket ( PURPOSE_E iPurpose=FOR_DATA );

Parameters

iPurpose
Enumerated constant that specifies whether the socket is to be a listening socket or a data socket. It is one of the following values:

Remarks

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

See Also

CCeSocket::Create