Use configuration setting to decide whether to download the server list or directly connect to the server. Accept other server lists. Accept un'zlib'ed server lists. Use IPv6 address from server list if configured.

This commit is contained in:
lotodore
2008-05-10 15:47:48 +00:00
parent 8aad232ef2
commit b5c2399603
9 changed files with 80 additions and 64 deletions
+16 -15
View File
@@ -107,27 +107,28 @@
// The following messages are connect messages.
#define MSG_SOCK_INIT_DONE 1
#define MSG_SOCK_RESOLVE_DONE 2
#define MSG_SOCK_CONNECT_DONE 3
#define MSG_SOCK_SESSION_DONE 4
#define MSG_SOCK_SERVER_LIST_DONE 2
#define MSG_SOCK_RESOLVE_DONE 3
#define MSG_SOCK_CONNECT_DONE 4
#define MSG_SOCK_SESSION_DONE 5
#define MSG_SOCK_LIMIT_CONNECT MSG_SOCK_SESSION_DONE
#define MSG_SOCK_LAST MSG_SOCK_SESSION_DONE
// The following messages are game messages.
#define MSG_NET_GAME_CLIENT_JOIN 5
#define MSG_NET_GAME_CLIENT_START 6
#define MSG_NET_GAME_CLIENT_HAND_START 7
#define MSG_NET_GAME_CLIENT_HAND_END 8
#define MSG_NET_GAME_CLIENT_END 9
#define MSG_NET_GAME_CLIENT_JOIN MSG_SOCK_LIMIT_CONNECT + 1
#define MSG_NET_GAME_CLIENT_START MSG_SOCK_LIMIT_CONNECT + 2
#define MSG_NET_GAME_CLIENT_HAND_START MSG_SOCK_LIMIT_CONNECT + 3
#define MSG_NET_GAME_CLIENT_HAND_END MSG_SOCK_LIMIT_CONNECT + 4
#define MSG_NET_GAME_CLIENT_END MSG_SOCK_LIMIT_CONNECT + 5
#define MSG_NET_GAME_SERVER_START 10
#define MSG_NET_GAME_SERVER_HAND_START 11
#define MSG_NET_GAME_SERVER_HAND_END 12
#define MSG_NET_GAME_SERVER_ROUND 13
#define MSG_NET_GAME_SERVER_ACTION 14
#define MSG_NET_GAME_SERVER_CARDS_DELAY 15
#define MSG_NET_GAME_SERVER_END 16
#define MSG_NET_GAME_SERVER_START MSG_SOCK_LIMIT_CONNECT + 6
#define MSG_NET_GAME_SERVER_HAND_START MSG_SOCK_LIMIT_CONNECT + 7
#define MSG_NET_GAME_SERVER_HAND_END MSG_SOCK_LIMIT_CONNECT + 8
#define MSG_NET_GAME_SERVER_ROUND MSG_SOCK_LIMIT_CONNECT + 9
#define MSG_NET_GAME_SERVER_ACTION MSG_SOCK_LIMIT_CONNECT + 10
#define MSG_NET_GAME_SERVER_CARDS_DELAY MSG_SOCK_LIMIT_CONNECT + 11
#define MSG_NET_GAME_SERVER_END MSG_SOCK_LIMIT_CONNECT + 12
#endif