OpenTTDDevBlackBook/Network/UDP

From OpenTTD
(Difference between revisions)
Jump to: navigation, search
m (Packet Format)
m (Open TTD Network Protocol - UDP)
Line 1: Line 1:
 +
[[category:Development]]
 
==Open TTD Network Protocol - UDP==
 
==Open TTD Network Protocol - UDP==
 
===Packet List===
 
===Packet List===

Revision as of 18:25, 21 September 2009

Contents

Open TTD Network Protocol - UDP

Packet List

The packet list is ordered in the same way as PacletUDPType enum from network/core/udp.h

Packet name Sent by Purpose
PACKET_UDP_CLIENT_FIND_SERVER Client Queries a game server for game information
PACKET_UDP_SERVER_RESPONSE Server Reply of the game server with game information
PACKET_UDP_CLIENT_DETAIL_INFO Client Queries a game server about details of the game, such as companies
PACKET_UDP_SERVER_DETAIL_INFO Server Reply of the game server about details of the game, such as companies
PACKET_UDP_SERVER_REGISTER Server Packet to register itself to the master server
PACKET_UDP_MASTER_ACK_REGISTER Master Server Packet indicating registration has succedeed
PACKET_UDP_CLIENT_GET_LIST Client Request for serverlist from master server
PACKET_UDP_MASTER_RESPONSE_LIST Master Server Response from master server with server ip's + port's
PACKET_UDP_SERVER_UNREGISTER Server Request to be removed from the server-list
PACKET_UDP_CLIENT_GET_NEWGRFS Client Requests the name for a list of GRFs (GRF_ID and MD5)
PACKET_UDP_SERVER_NEWGRFS Server Sends the list of NewGRF's requested.
PACKET_UDP_END None Must ALWAYS be on the end of this list!! (period)

Packet Format

Enumerate Server List

Enumerate Company Information

Personal tools