Initial handshake and network game start. Works with multiple clients. Not yet stable, because it is not thread-safe. GUI callbacks not complete yet (server dialog not updated).

This commit is contained in:
lotodore
2007-03-20 02:20:50 +00:00
parent 5f7ff8ca54
commit ef10602d5c
33 changed files with 731 additions and 113 deletions
+7 -1
View File
@@ -35,16 +35,22 @@
#define ERR_SOCK_RECV_FAILED 13
#define ERR_SOCK_SEND_FAILED 14
#define ERR_SOCK_CONN_RESET 15
#define ERR_SOCK_CONN_EXISTS 16
// This is an internal message which is not reported.
#define MSG_SOCK_INTERNAL_PENDING 0
// The following messages are reported.
// 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_LIMIT_CONNECT MSG_SOCK_SESSION_DONE
// The following messages are game messages.
#define MSG_SOCK_GAME_START 5
#define MSG_SOCK_LAST MSG_SOCK_SESSION_DONE
#endif