TipcConnSetSocket


Name

TipcConnSetSocket — set the socket of a connection

Synopsis

T_BOOL TipcConnSetSocket(conn, socket) 
T_IPC_CONN conn; 
T_INT4 socket; 

Arguments

conn — connection to set socket for

socket — connection socket

Return Values

TRUE if socket was successfully set for connection, FALSE otherwise.

Diagnostics

If TipcConnSetSocket fails, it returns FALSE and sets the global SmartSockets error number to:

Description

TipcConnSetSocket sets the socket file descriptor of a connection. A socket is an operating system device which provides a communication link to another process. All data sent to and received from the connection is transmitted on this socket.

Caution

The connection socket file descriptor should be set only by advanced applications.

See Also

TipcConnGetSocket

Examples

This example sets the socket of a connection:

socket = my_create_override_socket(); 
if (!TipcConnSetSocket(conn, socket)) { 
  return;  /* error */ 
}  

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