_IAPIEvents::onData

method onData.

Application messages are delivered by this callback function.

 

long onData(
  long hOwnerSocket,
  long raw_data,
  long data_size
);

Parameters

hOwnerSocket

[in] .   Handle of socket object

raw_data

[in] .   Pointer to C-String data. Client may use this data as is or convert it to BSTR

data_size

[in] .   Size of data

Return Values

0

The client code will free the chunk of data (raw_data) with FreeString()

Negative value

The client code let the component to free the chunk of data after returning from this method.

 

See Also

_IAPIEvents