Next Topic

Previous Topic

Book Contents

Connecting To The Server

Communication with the EDF server consists of two phases: a connection establishment phase and a command-execution phase. During the connection establishment phase the remote client provides authentication information to the server in the form of a login id, and the corresponding password. Once the authentication information has been verified, all subsequent commands sent to the server are executed with the permissions and privileges of the specified user.

Note that the login information provided to the EDF Server is the username and password specified in the dge.xml configuration file and not the web user login and password. On login, the user can insert data for all the devices and tests in Traverse.

Once the connection establishment phase has been completed, the client application may send one command at a time and wait to receive a reply from the server, possibly consisting of multiple lines of output.

A client application establishes a connection to the EDF Server by connecting to a TCP/IP socket, using the hostname/IP of the server that is running the monitor, and a pre-defined port number. The default port number is 7657. Upon establishment of the TCP session, the server will greet the client with a welcome message following the rules outlined below. If the server is ready to accept data, it will respond with OK Traverse External Data Feed Server Ready
at which point the remote client can send authentication information. If the server is unavailable, an error message is printed in the form ERR reason and the server disconnects the client.