X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fnetserv.h;h=67bab2284dd4da847b7305532ada28e39b6dad99;hb=200ef56170d80105ec6a2c499361a33b9fd3c3c9;hp=ec24d34408403c56d9509ae12b76246d934d1d7c;hpb=a3554a32c803528ed6837477982d7fddcf60072c;p=rocksndiamonds.git diff --git a/src/netserv.h b/src/netserv.h index ec24d344..67bab228 100644 --- a/src/netserv.h +++ b/src/netserv.h @@ -4,7 +4,7 @@ // (c) 1995-2014 by Artsoft Entertainment // Holger Schemel // info@artsoft.org -// http://www.artsoft.org/ +// https://www.artsoft.org/ // ---------------------------------------------------------------------------- // netserv.h // ============================================================================ @@ -14,29 +14,29 @@ #include "main.h" -#define DEFAULT_SERVER_PORT 19504 +#define DEFAULT_SERVER_PORT 19504 -#define PROTOCOL_VERSION_MAJOR 2 -#define PROTOCOL_VERSION_MINOR 0 -#define PROTOCOL_VERSION_PATCH 0 +#define PROTOCOL_VERSION_MAJOR 2 +#define PROTOCOL_VERSION_MINOR 0 +#define PROTOCOL_VERSION_PATCH 0 -#define OP_PROTOCOL_VERSION 1 -#define OP_BAD_PROTOCOL_VERSION 2 -#define OP_YOUR_NUMBER 3 -#define OP_NUMBER_WANTED 4 -#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_PLAYER 12 -#define OP_BROADCAST_MESSAGE 13 -#define OP_LEVEL_FILE 14 +#define OP_PROTOCOL_VERSION 1 +#define OP_BAD_PROTOCOL_VERSION 2 +#define OP_YOUR_NUMBER 3 +#define OP_NUMBER_WANTED 4 +#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_PLAYER 12 +#define OP_BROADCAST_MESSAGE 13 +#define OP_LEVEL_FILE 14 -#define MAX_BUFFER_SIZE 4096 -#define MAX_PACKET_SIZE 1048576 +#define MAX_BUFFER_SIZE 4096 +#define MAX_PACKET_SIZE 1048576 struct NetworkBuffer @@ -58,7 +58,7 @@ int putNetwork32BitInteger(byte *, int); char *getNetworkString(byte *); int putNetworkString(byte *, char *); -struct NetworkBuffer *newNetworkBuffer(); +struct NetworkBuffer *newNetworkBuffer(void); void initNetworkBufferForReceiving(struct NetworkBuffer *); void initNetworkBufferForReading(struct NetworkBuffer *); void initNetworkBufferForWriting(struct NetworkBuffer *, int, int);