TipcSrvDestroyCbLookup


Name

TipcSrvDestroyCbLookup — look up a server destroy callback

Synopsis

T_CB TipcSrvDestroyCbLookup(func, arg) 
T_IPC_SRV_DESTROY_CB_FUNC func; 
T_CB_ARG arg; 

Arguments

func — callback function

arg — user-defined argument

Return Values

Callback if successful, NULL otherwise.

Diagnostics

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

Description

TipcSrvDestroyCbLookup looks up a server destroy callback with the desired function and argument. These callbacks are called when RTclient destroys its connection to RTserver. See TipcSrvDestroyCbCreate for more information on server destroy callbacks.

Caution

None

See Also

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

Examples

This example looks up a server destroy callback:

T_CB cb; 
 
cb = TipcSrvDestroyCbLookup(my_server_destroy_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