next up previous contents
Next: 5.4 Message Formats Up: 5. Client/Server Protocol Previous: 5.2 A Note on   Contents

5.3 Connecting to the Server

First a connection to Player needs to be established. This is done by creating a TCP socket and connecting to Player on port number5.2 6665. Immediately after connection, Player will respond with a 32-character NULL-terminated string that identifies its version; if the version string is less than 32 characters in length, NULL characters will be added to lengthen it. When Player is interfacing to real devices, the string will be something like:
  Player v.1.2.3
When Player is running under Stage, the string will be something like:
  Player v.1.2.3 (stage)
The client must consume these 32 bytes; whether or not they are used in any way is up to the client. After the version string, the server is waiting for direction from the client.