TipcDispatcherSrvAdd


Name

TipcDispatcherSrvAdd — add an RTserver connection to a dispatcher

Synopsis

T_BOOL TipcDispatcherSrvAdd(dispatcher, srv) 
T_IPC_DISPATCHER dispatcher; 
T_IPC_SRV srv; 

Arguments

dispatcher — the dispatcher

srv — connection to the RTserver

Return Values

TRUE if the RTserver connection was successfully added to a dispatcher, FALSE otherwise.

Diagnostics

If TipcDispatcherSrvAdd fails, it returns FALSE and sets the global SmartSockets error number to:

Description

TipcDispatcherSrvAdd adds an RTserver connection to a dispatcher. A dispatcher reads messages from multiple connections at one time and is an alternative to calling TipcSrvConnMainLoop, or TipcSrvConnMsgNext, TipcSrvConnMsgProcess and TipcMsgDestroy on each connection individually.

Caution

Calling TipcSrvConnMsgNext, TipcSrvConnMsgSearch, TipcSrvConnMsgSearchType, TipcSrvConnMsgSendRpc or TipcSrvConnMainLoop might cause a dispatcher to block until the called function returns.

See Also

TipcDispatcherSrvRemove, TipcDispatcherDispatch, TipcDispatcherMainLoop

Examples

This example adds an RTserver connection to a dispatcher:

 
if (!TipcDispatcherSrvAdd(dispatcher, srv)) { 
  return;  /* error */ 
} 

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