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,
Mobile client,
Mobile server,
Java client,
Java server,
Adelia Web client,
Adelia Cloud 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
APPELER_DLL 'VATOOLBX.DLL' 'VaToolBxSockSetSoTimeout' Socket Timeout Rc
APPELER_DLL 'VATOOLBX.DLL' 'VaToolBxSockRecvNumBin4' Socket Data Rc
SI Rc = -2
* timeout...
...