Serial Framework C++ Edition

◆ Accept()

virtual int Accept ( CwclServerConnection *const  Server,
const void *const  Params,
const unsigned long  ParamsSize 
)
protectedvirtual

The method accepts the client connection request.

Parameters
ServerA CwclServerConnection object owns the client connection.
ParamsAn optional pointer to the hardware-dependent data contains information about client connection request.
ParamsSizeAn optional parameters size.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

The method called by the server when connection from a remote client device has already been accepted.

The method is always called from the main (or from the same) thread that runs the server.

The method prepares the class for communication with a remote client.

If the method fails it disconnects already accepted client connection.

See also
CwclServerConnection

Reimplemented in CwclServerClientDataConnection.