This function defines a timeout applicable to read operations on the socket (VaToolBxSockRecvXXX functions). If a timeout is defined and the read functions fail, they will send back a return code, -2.
Note: you can also specify this value when you log on via the "so_timeout" option in the VaToolBxSockConnectTcpServerEx function.
Context
Windows client,
Windows server,
Java client,
Java server,
Adelia Web client,
Adelia Cloud client,
Event Adelia client.
Parameters
NUM_BIN_4 |
Socket |
Socket handle. |
NUM_BIN_4 |
Timeout |
Waiting time in milliseconds, or zero for unlimited waiting time. |
NUM_BIN_4 |
ReturnCode |
Operation return code: 0 Operation completed successfully Other Specific error code |
For example
|
|
|
|
|
|
|
|
|
Timeout = 5000
CALL_DLL 'VATOOLBX.DLL' 'VaToolBxSockSetSoTimeout' Socket Timeout Rc
CALL_DLL 'VATOOLBX.DLL' 'VaToolBxSockRecvNumBin4' Socket Data Rc
SI Rc = -2
* timeout...
...