TipcConnSetTimeout


Name

TipcConnSetTimeout — set a timeout property of a connection

Synopsis

T_BOOL TipcConnSetTimeout(conn, timeout, value) 
T_IPC_CONN conn; 
T_IPC_TIMEOUT timeout; 
T_REAL8 value; 

Arguments

conn — connection to set timeout for

timeout — which timeout property to set

value — timeout value (in seconds)

Return Values

TRUE if the timeout property was successfully set for the connection, FALSE otherwise.

Diagnostics

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

Description

TipcConnSetTimeout sets a timeout property of a connection. The timeout properties control how often (in seconds) the connection is checked for possible network failures.

See TipcConnGetTimeout for information on connection timeouts.

Caution

None

See Also

TipcConnCheck, TipcConnFlush, TipcConnGetTimeout, TipcConnRead

Examples

This sets the read timeout of a connection with TipcConnSetTimeout to 10 seconds:

if (!TipcConnSetTimeout(conn, T_IPC_TIMEOUT_READ, 10.0)) { 
  return;  /* error */ 
}  

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