IrDA Framework
TwclServerClientConnection.Accept Method

The method accepts the client connection request.

function Accept(const Server: TwclServerConnection; const Params: Pointer; const ParamsSize: Cardinal): Integer; virtual;
const Server: TwclServerConnection 
A TwclServerConnection object owns the client connection.  
const Params: Pointer 
An optional pointer to the hardware depended data contains information about client connection request.  
const ParamsSize: Cardinal 
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.