… | |
… | |
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 | |
158 | |
|
|
159 | void send (void *buf_, int len); |
|
|
160 | |
159 | void send_packet (const char *buf); |
161 | void send_packet (const char *buf); |
160 | void send_packet (const char *buf, int len); |
162 | void send_packet (const char *buf, int len); |
161 | void send_packet (packet &sl); |
163 | void send_packet (packet &sl); |
162 | }; |
164 | }; |
163 | |
165 | |