summaryrefslogtreecommitdiff
path: root/network_udp.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-22 14:38:37 +0000
committerrubidium <rubidium@openttd.org>2006-08-22 14:38:37 +0000
commit908d3bcfe6912b5e6270453bd6c3db8862a4d62b (patch)
tree2a3621a92a3d30384ea51e0898d08f035a559915 /network_udp.c
parent7ba3ea5f29b1c23a001a31dec5570c383a72861a (diff)
downloadopenttd-908d3bcfe6912b5e6270453bd6c3db8862a4d62b.tar.xz
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
Diffstat (limited to 'network_udp.c')
-rw-r--r--network_udp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/network_udp.c b/network_udp.c
index aacf53372..5ec1f2376 100644
--- a/network_udp.c
+++ b/network_udp.c
@@ -26,19 +26,19 @@ typedef enum {
PACKET_UDP_CLIENT_FIND_SERVER,
PACKET_UDP_SERVER_RESPONSE,
PACKET_UDP_CLIENT_DETAIL_INFO,
- PACKET_UDP_SERVER_DETAIL_INFO, // Is not used in OpenTTD itself, only for external querying
- PACKET_UDP_SERVER_REGISTER, // Packet to register itself to the master server
- PACKET_UDP_MASTER_ACK_REGISTER, // Packet indicating registration has succedeed
- PACKET_UDP_CLIENT_GET_LIST, // Request for serverlist from master server
+ PACKET_UDP_SERVER_DETAIL_INFO, // Is not used in OpenTTD itself, only for external querying
+ PACKET_UDP_SERVER_REGISTER, // Packet to register itself to the master server
+ PACKET_UDP_MASTER_ACK_REGISTER, // Packet indicating registration has succedeed
+ PACKET_UDP_CLIENT_GET_LIST, // Request for serverlist from master server
PACKET_UDP_MASTER_RESPONSE_LIST, // Response from master server with server ip's + port's
- PACKET_UDP_SERVER_UNREGISTER, // Request to be removed from the server-list
+ PACKET_UDP_SERVER_UNREGISTER, // Request to be removed from the server-list
PACKET_UDP_END
} PacketUDPType;
enum {
ADVERTISE_NORMAL_INTERVAL = 30000, // interval between advertising in ticks (15 minutes)
- ADVERTISE_RETRY_INTERVAL = 300, // readvertise when no response after this many ticks (9 seconds)
- ADVERTISE_RETRY_TIMES = 3 // give up readvertising after this much failed retries
+ ADVERTISE_RETRY_INTERVAL = 300, // readvertise when no response after this many ticks (9 seconds)
+ ADVERTISE_RETRY_TIMES = 3 // give up readvertising after this much failed retries
};
#define DEF_UDP_RECEIVE_COMMAND(type) void NetworkPacketReceive_ ## type ## _command(Packet *p, struct sockaddr_in *client_addr)