TipcDispatcherDispatch


Name

TipcDispatcherDispatch — dispatch triggered events and exit

Synopsis

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

Arguments

dispatcher — the dispatcher

timeout — the amount of time to wait for triggered events

Return Values

TRUE if the dispatcher successfully dispatched events, FALSE otherwise.

Diagnostics

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

Description

TipcDispatcherDispatch immediately invokes any triggered events and then exits event if timeout seconds has not elapsed. If there are no triggered events, it waits for up to timeout seconds for events to be triggered.

Caution

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

See Also

TipcDispatcherMainLoop

Examples

This example dispatches events:

if (!TipcDispatcherDispatch(dispatcher, 1.0)) { 
  return;  /* error */ 
} 

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