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.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on 27 June 2017, at 13:21.