Jump to: navigation, search

TDispatch

Description

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.

Parameters

Name Description
server Local server handle to the T-Server in question.

Return Values

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.

Comments

This function does not generate any messages to T-Server.

This page was last edited on March 17, 2016, at 18:07.
Comments or questions about this documentation? Contact us for support!