TipcConnDefaultCbLookup


Name

TipcConnDefaultCbLookup — look up a default callback in a connection

Synopsis

T_CB TipcConnDefaultCbLookup(conn, func, arg) 
T_IPC_CONN conn; 
T_IPC_CONN_DEFAULT_CB_FUNC func; 
T_CB_ARG arg; 

Arguments

conn — connection to look up callback for

func — callback function

arg — user-defined argument

Return Values

Callback if successful, NULL otherwise.

Diagnostics

If TipcConnDefaultCbLookup fails, it returns NULL and sets the global SmartSockets error number to one of:

Description

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.

Caution

None

See Also

TipcConnDefaultCbCreate; see the TIBCO SmartSockets Utilities for information on TutCbDestroy.

Examples

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