TipcSrvRead read all available data from the connection to RTserver and queue messages in priority order
timeout
maximum number of seconds to wait for data to arrive
TRUE
if data was successfully read from the connection to RTserver, FALSE
otherwise.
If TipcSrvRead fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TipcSrvRead reads and queues all available messages from the connection to RTserver by calling TipcConnRead. SeeTipcConnRead for more information on reading data from a connection.
TipcSrvRead may attempt to automatically create a connection to RTserver. If RTclient has a warm connection to RTserver, TipcSrvRead sleeps for timeout
seconds and returns FALSE
. See TipcSrvCreate on automatic creation of connections and warm connections to RTserver.
TipcSrvRead is a low-level function that is normally not used directly by developers; TipcSrvRead is normally called only by TipcSrvMsgNext and TipcSrvMsgSearch.
TipcConnRead, TipcSrvCheck, TipcSrvReadCbCreate
This example reads all data that is immediately available from the connection to RTserver with TipcSrvRead:
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |