Serial Framework
ContentsIndexHome
PreviousUpNext
CwclServerClientConnection::Accept Method

The method accepts the client connection request.

Syntax
C++
virtual int Accept(CwclServerConnection* Server, void* Params, unsigned long ParamsSize);
Parameters 
Description 
CwclServerConnection* Server 
A CwclServerConnection object owns the client connection.  
void* Params 
An optional pointer to the hardware depended data contains information about client connection request.  
unsigned long ParamsSize 
An optional parameters size.  

If the function successed 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 comunication with a remote client.  

If the method fails it disconnects already accepted client connection.  

 

Copyright (c) 2006-2017. All rights reserved.