TipcSrvConnCloseCbLookup look up a server close callback
T_CB TipcSrvConnCloseCbLookup(srv
,func
,arg
) T_IPC_SRVsrv
; T_IPC_SRV_DESTROY_CB_FUNCfunc
; T_CB_ARGarg
;
srv
connection to RTserver
func
callback function
arg
user-defined argument
New callback if successful, NULL
otherwise.
If TipcSrvConnCloseCbLookup fails, it returns NULL
and sets the global SmartSockets error number to one of:
TipcSrvConnCloseCbLookup looks up a server close callback with the desired function and argument. These callbacks are called when RTclient closes its connection to RTserver. See TipcSrvConnCloseCbCreate for more information on server close callbacks.
None
TipcSrvConnCloseCbCreate; see the TIBCO SmartSockets Utilities for information on TutCbDestroy.
This example looks up a server close callback:
T_CB cb; cb = TipcSrvConnCloseCbLookup(srv, my_server_close_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 |