TipcSrvReadCbLookup look up a read callback in the connection to RTserver
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 TipcSrvReadCbLookup fails, it returns NULL
and sets the global SmartSockets error number to one of:
TipcSrvReadCbLookup looks up a read callback with the desired message type, function, and argument in the connection to RTserver by calling TipcConnReadCbLookup. These callbacks are called when a message is read from the connection to RTserver. See TipcConnReadCbCreate on connection read callbacks.
TipcSrvReadCbLookup may attempt to automatically create a connection to RTserver. If RTclient has a warm connection to RTserver, TipcSrvReadCbLookup looks up a read callback in the warm connection. See TipcSrvCreate on automatic creation of connections and warm connections to RTserver.
None
TipcConnReadCbCreate, TipcSrvReadCbCreate, TipcSrvReadCbLookup; see the TIBCO SmartSockets Utilities for information on TutCbDestroy.
This code looks up and destroys a global read callback in the connection to RTserver:
T_CB cb; cb = TipcSrvReadCbLookup(NULL, my_global_read_cb, NULL); if (cb == NULL) {return
; /* error */
} if (!TutCbDestroy(cb)) {return
; /* error */
}
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |