X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fnetserv.h;h=53d96276368ca9c1df3db6cb56ae4ed4a95d0214;hp=69d242026761b21297aa98bbceb224c7d4668aa9;hb=7ecbe0a730dc19d8a46ffe6bbcb052f20d0c4152;hpb=19004e830980892c3abc3021bd1b868861836bb8 diff --git a/src/netserv.h b/src/netserv.h index 69d24202..53d96276 100644 --- a/src/netserv.h +++ b/src/netserv.h @@ -1,20 +1,20 @@ -/*********************************************************** -* Rocks'n'Diamonds -- McDuffin Strikes Back! * -*----------------------------------------------------------* -* (c) 1995-98 Artsoft Entertainment * -* Holger Schemel * -* Oststrasse 11a * -* 33604 Bielefeld * -* phone: ++49 +521 290471 * -* email: aeglos@valinor.owl.de * -*----------------------------------------------------------* -* netserv.h * -***********************************************************/ +// ============================================================================ +// Rocks'n'Diamonds - McDuffin Strikes Back! +// ---------------------------------------------------------------------------- +// (c) 1995-2014 by Artsoft Entertainment +// Holger Schemel +// info@artsoft.org +// http://www.artsoft.org/ +// ---------------------------------------------------------------------------- +// netserv.h +// ============================================================================ #ifndef NETSERV_H #define NETSERV_H -#define DEFAULTPORT 19504 +#include "main.h" + +#define DEFAULT_SERVER_PORT 19504 #define PROTOCOL_VERSION_1 1 #define PROTOCOL_VERSION_2 2 @@ -24,32 +24,19 @@ #define OP_BAD_PROTOCOL_VERSION 2 #define OP_YOUR_NUMBER 3 #define OP_NUMBER_WANTED 4 -#define OP_NICKNAME 5 +#define OP_PLAYER_NAME 5 #define OP_PLAYER_CONNECTED 6 #define OP_PLAYER_DISCONNECTED 7 #define OP_START_PLAYING 8 #define OP_PAUSE_PLAYING 9 #define OP_CONTINUE_PLAYING 10 #define OP_STOP_PLAYING 11 -#define OP_MOVE_FIGURE 12 - -#define OP_LOST 13 -#define OP_CLEAR 14 -#define OP_LINES 15 -#define OP_GROW 16 -#define OP_MODE 17 -#define OP_LEVEL 18 -#define OP_BOT 19 -#define OP_KILL 20 -#define OP_BADVERS 21 -#define OP_MSG 22 -#define OP_YOUARE 23 -#define OP_LINESTO 24 -#define OP_WON 25 -#define OP_ZERO 26 +#define OP_MOVE_PLAYER 12 +#define OP_BROADCAST_MESSAGE 13 #define MAX_BUFFER_SIZE 4096 +int NetworkServerThread(void *); void NetworkServer(int, int); #endif