.. _arclink_protocol: **************** ArcLink Protocol **************** The ArcLink protocol is a plain ASCII protocol. On connection, the server waits for a sequence of commands from the client. Each command is processed sequentially and the client should waits for the previous command to end before sending a new command. ArcLink commands consist of an ASCII string followed by zero or more arguments separated by spaces and terminated with carriage return (, ASCII code 13) followed by an optional line feed (, ASCII code 10). Except for STATUS, the response on the command consists of one or several lines terminated with . Unless noted otherwise, the response is OKor ERROR, depending if the command has been successful or not. After getting the ERROR response, it is possible to retrieve the error message with SHOWERR command. Client protocol =============== The description of every know command to the ArcLink client protocol is given here. HELLO returns two -terminated lines with the software version and the data centre name. BYE close the connection (useful for testing the server with telnet, otherwise it is enough to close the client-side socket). USER authenticates the user; required before any of the following commands. INSTITUTION optionally specifies institution name. LABEL