Whenever there is any activity on the socket, this function
dispatches the data communicated by T-Server to the user-defined
callback function (designated in the call to the functions TOpenServer()
and
TOpenServerEx()
), which handles incoming events.
Name | Description |
---|---|
server | Local server handle to the T-Server in question. |
0
—
Returned when the function could not process
any events.
> 0
—
The number of events the function has
been able to read from the input buffer and deliver to the user-defined
callback function designated in the call to
TOpenServer()
or TOpenServerEx().
If
a connection to T-Server has been lost, the function causes EventServerDisconnected
to
be delivered in addition to the events communicated by T-Server
and returns the number of communicated events, including EventServerDisconnected.
This function does not generate any messages to T-Server.