TipcSrvProcessCbLookup look up a process callback in the connection to RTserver
T_CB TipcSrvProcessCbLookup(mt
,func
,arg
) T_IPC_MTmt
; T_IPC_CONN_PROCESS_CB_FUNCfunc
; T_CB_ARGarg
;
mt
message type to look up callback for (null means global callback)
func
callback function
arg
user-defined argument
Callback if successful, NULL
otherwise.
If TipcSrvProcessCbLookup fails, it returns NULL
and sets the global SmartSockets error number to one of:
TipcSrvProcessCbLookup looks up the process callback with the desired message type, function, and argument in the connection to RTserver by calling TipcConnProcessCbLookup. These callbacks are called by TipcSrvMsgProcess to perform the normal processing of a message. See TipcConnProcessCbCreate for more information on connection process callbacks.
TipcSrvProcessCbLookup may attempt to automatically create a connection to RTserver. If RTclient has a warm connection to RTserver, TipcSrvProcessCbLookup looks up a process callback in the warm connection. See TipcSrvCreate for more information on automatic creation of connections and warm connections to RTserver.
None
TipcConnProcessCbLookup, TipcSrvProcessCbCreate; see the TIBCO SmartSockets Utilities for information on TutCbDestroy.
This looks up a global process callback in the connection to RTserver:
T_CB cb; cb = TipcSrvProcessCbLookup(NULL, my_global_srv_process_cb, NULL); if (cb == NULL) {
return
; /* error */
}
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |