TipcConnDefaultCbLookup look up a default callback in a connection
T_CB TipcConnDefaultCbLookup(conn
,func
,arg
) T_IPC_CONNconn
; T_IPC_CONN_DEFAULT_CB_FUNCfunc
; T_CB_ARGarg
;
conn
connection to look up callback for
func
callback function
arg
user-defined argument
Callback if successful, NULL
otherwise.
If TipcConnDefaultCbLookup fails, it returns NULL
and sets the global SmartSockets error number to one of:
TipcConnDefaultCbLookup looks up a default callback with the desired function and argument in a connection. These callbacks are called by TipcConnMsgProcess when there are no process callbacks for the type of message being processed. See TipcConnDefaultCbCreate for more information on default callbacks.
None
TipcConnDefaultCbCreate; see the TIBCO SmartSockets Utilities for information on TutCbDestroy.
This example looks up and destroys a default callback:
cb = TipcConnDefaultCbLookup(conn, my_conn_default_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 |