Work on dedicated server. This svn revision is totally broken, it is part of a complete redesign of the server.
There is a lobby thread for the server, and each game has its own game processing thread and a sender thread. Connections can be accepted from different sources, i.e. TCP/SCTP over IPv4, IPv6, all those work well in parallel.
This commit is contained in:
@@ -51,12 +51,13 @@
|
||||
#define ERR_NET_INVALID_PLAYER_NAME 107
|
||||
#define ERR_NET_INVALID_PLAYER_CARDS 108
|
||||
#define ERR_NET_INVALID_PLAYER_RESULTS 109
|
||||
#define ERR_NET_INVALID_CHAT_TEXT 110
|
||||
#define ERR_NET_UNKNOWN_PLAYER_ID 111
|
||||
#define ERR_NET_INVALID_ROUND 112
|
||||
#define ERR_NET_PLAYER_KICKED 113
|
||||
#define ERR_NET_INVALID_PLAYER_COUNT 114
|
||||
#define ERR_NET_PLAYER_NOT_IN_GAME 115
|
||||
#define ERR_NET_INVALID_GAME_NAME 110
|
||||
#define ERR_NET_INVALID_CHAT_TEXT 111
|
||||
#define ERR_NET_UNKNOWN_PLAYER_ID 112
|
||||
#define ERR_NET_INVALID_ROUND 113
|
||||
#define ERR_NET_PLAYER_KICKED 114
|
||||
#define ERR_NET_INVALID_PLAYER_COUNT 115
|
||||
#define ERR_NET_PLAYER_NOT_IN_GAME 116
|
||||
|
||||
// This is an internal message which is not reported.
|
||||
#define MSG_SOCK_INTERNAL_PENDING 0
|
||||
|
||||
Reference in New Issue
Block a user