XPS Unified Programmer’s Manual
4.0 TCP/IP Support Functions
To ease the use of the TCP/IP communication, few functions have been develop by
Newport. These functions uses the Microsoft System.Net.Sockets.
4.1 OpenInstrument
Name
OpenInstrument – Create and open a socket.
Description
This function is used to create and open a socket. Send Timeout is set to 1 second
Prototype
int OpenInstrument (string IP_Address, int Port, int ReceiveTimeout)
Input parameters
IP_Address string IP address of instrument.
Port int Port number.
Timeout int ReceiveTimeout in milliseconds.
Output parameters
None.
Return
• 0: No error.
• -1: Error of socket open.
11 EDH0373En1023 — 01/18