… | |
… | |
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 | |
158 | |
159 | void send_packet (const char *buf); |
159 | void send_packet (const char *buf); |
160 | void send_packet (const char *buf, int len); |
160 | void send_packet (const char *buf, int len); |
161 | void send_packet (SockList &sl); |
161 | void send_packet (packet &sl); |
162 | }; |
162 | }; |
163 | |
163 | |
164 | #define CLIENT_SUPPORT_READABLES(__sockPtr,__type)\ |
164 | #define CLIENT_SUPPORT_READABLES(__sockPtr,__type)\ |
165 | ( ((__type)>0) &&\ |
165 | ( ((__type)>0) &&\ |
166 | ((__sockPtr)->has_readable_type) && \ |
166 | ((__sockPtr)->has_readable_type) && \ |