Jump to: navigation, search

TScanServer

Description

Scans T-Server for one or more incoming messages for a time interval specified by the parameter timeout. This function does not affect delivery of pending messages and does not process timers, so it should not be used with connections opened in asynchronous mode or if ADDP protocol is used. (Use TScanServerEx() to process timers.)

Parameters

Name Description
server Local server handle to the T-Server in question.
timeout Time interval, in seconds, during which a message from T-Server will be sought.

Return Values

>0 — Number of received messages.

0 — The timeout is expired.

-1 — Error condition. Returned to the application if the request has not been processed due to an incorrect function statement.

Comments

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

This page was last edited on June 27, 2017, at 20:21.
Comments or questions about this documentation? Contact us for support!