TipcSrvConnCloseCbLookup


Name

TipcSrvConnCloseCbLookup — look up a server close callback

Synopsis

T_CB TipcSrvConnCloseCbLookup(srv, func, arg) 
T_IPC_SRV srv; 
T_IPC_SRV_DESTROY_CB_FUNC func; 
T_CB_ARG arg; 

Arguments

srv — connection to RTserver

func — callback function

arg — user-defined argument

Return Values

New callback if successful, NULL otherwise.

Diagnostics

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

Description

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.

Caution

None

See Also

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

Examples

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