1 | /* |
1 | /* |
2 | * static char *rcsid_newclient_h = |
2 | * static char *rcsid_newclient_h = |
3 | * "$Id: newclient.h,v 1.2 2006/03/13 20:45:39 root Exp $"; |
3 | * "$Id: newclient.h,v 1.3 2006/05/01 12:26:57 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
49 | #define NEWCLIENT_H |
49 | #define NEWCLIENT_H |
50 | |
50 | |
51 | /* Maximum size of any packet we expect. Using this makes it so we don't need to |
51 | /* Maximum size of any packet we expect. Using this makes it so we don't need to |
52 | * allocated and deallocated the same buffer over and over again and the price |
52 | * allocated and deallocated the same buffer over and over again and the price |
53 | * of using a bit of extra memory. It also makes the code simpler. |
53 | * of using a bit of extra memory. It also makes the code simpler. |
|
|
54 | * |
|
|
55 | * The size must be the same in the server and the client (stupid), and its also NOT |
|
|
56 | * the maximum buffer size as one would expect, but the maximum buffer size + 1. |
54 | */ |
57 | */ |
55 | #define MAXSOCKBUF 10240 |
58 | #define MAXSOCKBUF 10240 |
56 | |
59 | |
57 | |
60 | |
58 | #define CS_QUERY_YESNO 0x1 /* Yes/no question */ |
61 | #define CS_QUERY_YESNO 0x1 /* Yes/no question */ |