| 35 * |
35 * |
| 36 * TCP allows packet 64K |
36 * TCP allows packet 64K |
| 37 */ |
37 */ |
| 38 #define MAX_PACKET_SIZE 65535 |
38 #define MAX_PACKET_SIZE 65535 |
| 39 |
39 |
| |
40 #ifndef _WIN32 |
| 40 #include <netinet/in.h> |
41 #include <netinet/in.h> |
| |
42 #else |
| |
43 #include "win32dep.h" |
| |
44 #endif |
| 41 |
45 |
| 42 gint qq_get8(guint8 *b, guint8 *buf); |
46 gint qq_get8(guint8 *b, guint8 *buf); |
| 43 gint qq_get16(guint16 *w, guint8 *buf); |
47 gint qq_get16(guint16 *w, guint8 *buf); |
| 44 gint qq_get32(guint32 *dw, guint8 *buf); |
48 gint qq_get32(guint32 *dw, guint8 *buf); |
| 45 gint qq_getIP(struct in_addr *ip, guint8 *buf); |
49 gint qq_getIP(struct in_addr *ip, guint8 *buf); |