… | |
… | |
153 | /* If we get an incomplete packet, this is used to hold the data. */ |
153 | /* If we get an incomplete packet, this is used to hold the data. */ |
154 | uint8 inbuf[MAXSOCKBUF]; |
154 | uint8 inbuf[MAXSOCKBUF]; |
155 | |
155 | |
156 | int read_packet (); // returns length of packet or 0 |
156 | int read_packet (); // returns length of packet or 0 |
157 | void skip_packet (int len); // we have processed the packet, skip it |
157 | void skip_packet (int len); // we have processed the packet, skip it |
|
|
158 | |
|
|
159 | void send_packet (const char *buf); |
|
|
160 | void send_packet (const char *buf, int len); |
|
|
161 | void send_packet (SockList &sl); |
158 | }; |
162 | }; |
159 | |
163 | |
160 | #define CLIENT_SUPPORT_READABLES(__sockPtr,__type)\ |
164 | #define CLIENT_SUPPORT_READABLES(__sockPtr,__type)\ |
161 | ( ((__type)>0) &&\ |
165 | ( ((__type)>0) &&\ |
162 | ((__sockPtr)->has_readable_type) && \ |
166 | ((__sockPtr)->has_readable_type) && \ |