… | |
… | |
46 | #include <cstdarg> |
46 | #include <cstdarg> |
47 | |
47 | |
48 | /* Maximum size of any packet we expect. |
48 | /* Maximum size of any packet we expect. |
49 | * |
49 | * |
50 | * The size must be the same in the server and the client (stupid). |
50 | * The size must be the same in the server and the client (stupid). |
51 | * TODO: make the actual network configurable per clietn and use 2**16. |
51 | * TODO: make the actual network configurable per client and use 2**16. |
52 | */ |
52 | */ |
53 | #define MAXSOCKBUF 10239 |
53 | #define MAXSOCKBUF 10239 |
54 | |
54 | |
55 | #define CS_QUERY_YESNO 0x1 /* Yes/no question */ |
55 | #define CS_QUERY_YESNO 0x1 /* Yes/no question */ |
56 | #define CS_QUERY_SINGLECHAR 0x2 /* Single character response expected */ |
56 | #define CS_QUERY_SINGLECHAR 0x2 /* Single character response expected */ |