TipcEventGetSocket


Name

TipcEventGetSocket — get the socket information for a socket event

Synopsis

T_BOOL TipcEventGetSocket(event, socket_return) 
T_IPC_EVENT event; 
T_INT4 *socket_return; 

Arguments

event — a socket event

socket_return — returned socket

Return Values

TRUE if the socket was successfully retrieved for the event, FALSE otherwise.

Diagnostics

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

Description

TipcEventGetSocket returns the socket information for a socket event.

Caution

None

See Also

TipcEventCreateSocket

Examples

This example returns the socket information for a socket event.

T_INT4 socket; 
 
if (!TipcEventGetSocket(event, &socket)) { 
  return;  /* error */ 
} 

TIBCO SmartSockets™ Application Programming Interface
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com