Use 40 bytes for the "host" (IP address) in GAMESTRUCT, this allows for using IPv6 without breaking protocol combatility again

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7239 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2009-04-29 18:57:21 +00:00 committed by Git SVN Gateway
parent 29a2b2fe35
commit e16e034ec7
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ typedef enum
typedef struct { //Available game storage... JUST FOR REFERENCE!
int32_t dwSize;
int32_t dwFlags;
char host[16]; // host ip address
char host[40]; // host's ip address (can fit a full IPv4 and IPv6 address + terminating NUL)
int32_t dwMaxPlayers;
int32_t dwCurrentPlayers;
int32_t dwUserFlags[4];