Author Topic: Live Timing  (Read 151 times)


  • Administrator
  • Hero Member
  • *****
  • Posts: 2316
    • View Profile
Live Timing
« on: November 11, 2017, 04:19:59 PM »
It is possible to connect to a dedicated server to receive live race data.
Only 1 client can connect to the server.

Communication is made with UDP sockets and strings terminated with "\n".

Send "CONNECT" followed by the connection password ( empty string if no password ).
OK -> connected
FULL -> another client is already connected
WRONGPASSWORD -> wrong password

Send "START" to start receiving data.
Data format is "MSG" followed by the message ID and then a stream of strings.
Send "ACK" followed by the message ID after each MSG.

Send "KEEPALIVE" every 15 seconds to keep the connection active.
The server sends "ALIVE" to report that the connection is active.

Send "DISCONNECT" to correctly close the connection.
Gone Shootin'

Italian Mod Team

  • Full Member
  • ***
  • Posts: 244
    • View Profile
Re: Live Timing
« Reply #1 on: November 11, 2017, 04:50:30 PM »
Thanks, but where I write "connect.....ecc ecc"?? On Chrome, Iexplorer, Safari??
Please, type an example

Thank you, IMT