TipcSrvConnOpenCbLookup


Name

TipcSrvConnOpenCbLookup — look up a server open callback

Synopsis

T_CB TipcSrvConnOpenCbLookup(srv, func, arg) 
T_IPC_SRV srv; 
T_IPC_SRV_CREATE_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 TipcSrvConnOpenCbLookup fails, it returns NULL and sets the global SmartSockets error number to one of:

Description

TipcSrvConnOpenCbLookup looks up a server open callback with the desired function and argument. These callbacks are called when an RTclient opens a warm or full connection to RTserver. See TipcSrvConnOpenCbCreate for more information on server create callbacks.

Caution

None

See Also

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

Examples

This example looks up a server open callback:

T_CB cb; 
 
cb = TipcSrvConnOpenCbLookup(my_server_open_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