Semester Project (part 1)
1. Connecting and signing on
Locating a Robowar server
Connecting to a Robowar server
Signing on to the Robowar simulator
2. Locating a Robowar server
Server will respond to message to UDP port 4000
Client should broadcast Robowar "ping"
Wait for a reply
Extract source address (
recvfrom
) and use as address of server
3. Connecting to a server
Use the address from previous message as address of server
Establish TCP connection (
connect
) to port 4000
4. Signing on
Send a SIGNON message to the server (a sequence of bytes)
Format of message:
0
len
Player name (len bytes)
Player name length (len) must be less than 16 bytes
5. SIGNON confirmation
Server will respond with SIGNON_ACK through TCP connection
Format of message:
0
Player ID (32-bit integer)
Last revised 28 October 2008