XPS Unified Programmer’s Manual
4.2 CloseInstrument
Name
CloseInstrument – Closes the current socket.
Description
This function is used to close the current socket.
Prototype
int CloseInstrument ()
Input parameters
None.
Output parameters
None.
Return
• 0: No error.
• -1: Error of socket close.
4.3 SetTimeout
Name
SetTimeout – Configures socket timeout.
Description
This function is used to configure socket timeout for sending and reading.
Prototype
int SetTimeout (int SendingTimeout, int ReadingTimeout)
Input parameters
SendingTimeout int Sending timeout in milliseconds.
ReadingTimeout int Reading timeout in milliseconds.
Output parameters
None.
Return
• 0: No error.
• -1: Error of set timeout.
EDH0373En1023 — 01/18 12