XPS Unified
EDH0373En1023 — 01/18
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
ReadingTimeout
Output parameters
None.
Return
• 0: No error.
• -1: Error of set timeout.
int
Sending timeout in milliseconds.
int
Reading timeout in milliseconds.
12
Programmer's Manual