TipcSrvErrorCbLookup


Name

TipcSrvErrorCbLookup — look up an error callback in the connection to RTserver

Synopsis

T_CB TipcSrvErrorCbLookup(func, arg) 
T_IPC_CONN_ERROR_CB_FUNC func; 
T_CB_ARG arg; 

Arguments

func — callback function

arg — user-defined argument

Return Values

Callback if successful, NULL otherwise.

Diagnostics

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

Description

TipcSrvErrorCbLookup looks up an error callback with the desired function and argument in the connection to RTserver by calling TipcConnErrorCbLookup. These callbacks are called when there is an unrecoverable error on the connection to RTserver. See TipcConnErrorCbCreate more information on error callbacks.

TipcSrvErrorCbLookup may attempt to automatically create a connection to RTserver. If RTclient has a warm connection to RTserver, TipcSrvErrorCbLookup looks up an error callback in the warm connection. See TipcSrvCreate on automatic creation of connections and warm connections to RTserver.

Caution

None

See Also

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

Examples

This example looks up an error callback in the connection to RTserver:

T_CB cb; 
 
cb = TipcSrvErrorCbLookup(my_srv_error_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