TipcDispatcherMainLoop


Name

TipcDispatcherMainLoop — dispatch events for a specified amount of time

Synopsis

T_BOOL TipcDispatcherMainLoop(dispatcher, timeout) 
T_IPC_DISPATCHER dispatcher; 
T_REAL8 timeout; 

Arguments

dispatcher — the dispatcher

timeout — the amount of time in which to manage events

Return Values

TRUE if the dispatcher successfully dispatched events, FALSE otherwise.

Diagnostics

If TipcDispatcherMainLoop fails, it returns FALSE and sets the global SmartSockets error number to one of:

Description

TipcDispatcherMainLoop manages events for timeout seconds.

Caution

This function can only be called from the same thread that created the dispatcher.

See Also

TipcDispatcherDispatch

Examples

This example dispatches events:

if (!TipcDispatcherMainLoop(dispatcher, T_TIMEOUT_FOREVER)) { 
  return;  /* error */ 
} 

TIBCO SmartSockets™ Application Programming Interface
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com