_IAPIEvents::onConnectionState

method onConnectionState.

Socket connection states are notified by this callback function to client or proxy code.

 

long onConnectionState(
  long hOwnerSocket,
  BSTR state_desc,
  long error_number
);

Parameters

hOwnerSocket

[in] .   Handle of socket object

state_desc

[in] .   Textual description

error_number

[in] .   If socket object is a regular client:

 . error_number = 0  means that connection is established or re-established.
 . error_number = 10054  means that socket is closed gracefully.
 . error_number = <other value> means that socket is broken.

 

If socket object is a proxy (server side):

 . error_number = 10054  means that socket is closed gracefully.
 . error_number = <other value> means that socket is broken.

Return Values

Any value

See Also

_IAPIEvents