… | |
… | |
45 | |
45 | |
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), and its also NOT |
50 | * The size must be the same in the server and the client (stupid). |
51 | * the maximum buffer size as one would expect, but the maximum buffer size + 1. |
51 | * TODO: make the actual network configurable per clietn and use 2**16. |
52 | */ |
52 | */ |
53 | #define MAXSOCKBUF 10240 |
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 */ |
57 | #define CS_QUERY_HIDEINPUT 0x4 /* Hide input being entered */ |
57 | #define CS_QUERY_HIDEINPUT 0x4 /* Hide input being entered */ |
58 | |
58 | |