XPS Unified Programmer’s Manual
7.2.1.328 TCP_SetTimeout
Name
TCP_SetTimeout – Sets the timeout for TCP/IP communication.
Input tests
- Refer to section 7.1: “Input Tests Common to all XPS Functions”.
- Checks number of used sockets (Maximum number = 100).
- Socket must be used.
- Timeout value must be positive.
Description
Sets a new timeout value in seconds for the opened TCP/IP communication defined by a
socket identifier.
If the timeout is less than 0.001, the timeout value defaults to 0.001.
If the socket is undefined or is not used then nothing happens.
Prototype
int TCP_SetTimeout(
int SocketID,
double Timout
)
Input parameters
SocketID int Socket identifier used in each function.
Timeout double Timeout in seconds used for each function
execution.
Output parameters
None.
Return (In addition to the results of “Input Tests Common to all XPS
Functions”)
None.
477 EDH0373En1023 — 01/18