TCPSetTimeout


C Specification

#include <dolphin/ip.h>
s32 TCPSetTimeout ( TCPInfo* info, OSTime threshold );

Description

TCPSetTimeout() sets the total retransmit timeout value for the TCP connection after it is established. When total retransmissions reach the threshold, the connection is closed and any queued operations are notified an IP_ERR_TIMEOUT error. When info is opened with TCPOpen(), the threshold is set to 100 seconds.

Note: Until the TCP connection is established, the total retransmit timeout value is fixed to 3 minutes following RFC 1122 "4.2.3.5 TCP Connection Failures".

Arguments

info Pointer to TCPInfo block to which threshold is set.
threshold Should be at least 100 seconds.

Return Values

IP_ERR_NONE Succeeded.
IP_ERR_INVALID info is not a valid TCPInfo.

See Also

Braden, R., ed. 1989 "Requirements for Internet Hosts -- Communication Layers", RFC 1122 (Oct.).