… | |
… | |
173 | unsigned int inbuf_len; // number of bytes valid in inbuf |
173 | unsigned int inbuf_len; // number of bytes valid in inbuf |
174 | uint8 *faces_sent; // This is a bitmap on sent face status |
174 | uint8 *faces_sent; // This is a bitmap on sent face status |
175 | statsinfo stats; |
175 | statsinfo stats; |
176 | int ACC (RO, active); |
176 | int ACC (RO, active); |
177 | |
177 | |
178 | client_container cc_inv, cc_other; |
|
|
179 | Buffer outputbuffer; |
178 | Buffer outputbuffer; |
180 | |
179 | |
181 | char *ACC (RW, host); /* Which host it is connected from (ip address) */ |
180 | char *ACC (RW, host); /* Which host it is connected from (ip address) */ |
182 | uint8 ACC (RW, state); /* Input state of the player (name, password, etc */ |
181 | uint8 ACC (RW, state); /* Input state of the player (name, password, etc */ |
183 | |
182 | |
… | |
… | |
233 | int ACC (RW, rtt), ACC (RW, rttvar); /* round-trip time and -variance, if known */ |
232 | int ACC (RW, rtt), ACC (RW, rttvar); /* round-trip time and -variance, if known */ |
234 | |
233 | |
235 | void do_destroy (); |
234 | void do_destroy (); |
236 | void gather_callbacks (AV *&callbacks, event_type event) const; |
235 | void gather_callbacks (AV *&callbacks, event_type event) const; |
237 | |
236 | |
|
|
237 | iow socket_ev; void socket_cb (iow &w, int got); |
238 | iw cmd_ev; void cmd_cb (iw &w); |
238 | iw cmd_ev; void cmd_cb (iw &w); |
239 | iow socket_ev; void socket_cb (iow &w, int got); |
239 | client_container cc_inv, cc_other; |
240 | |
240 | |
241 | std::deque< command, slice_allocator<command> > cmd_queue; |
241 | std::deque< command, slice_allocator<command> > cmd_queue; |
242 | |
242 | |
243 | // large structures at the end please |
243 | // large structures at the end please |
244 | struct Map lastmap; |
244 | struct Map lastmap; |
… | |
… | |
321 | |
321 | |
322 | #define FACE_TYPES 1 |
322 | #define FACE_TYPES 1 |
323 | #define PNG_FACE_INDEX 0 |
323 | #define PNG_FACE_INDEX 0 |
324 | |
324 | |
325 | #define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ |
325 | #define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ |
326 | #define VERSION_SC 1027 |
326 | #define VERSION_SC 1026 |
|
|
327 | //#define VERSION_SC 1027 // requestinfo image_info and image_sums, makes extending faces on the fly impossible |
327 | #define VERSION_INFO "Crossfire+ Server" |
328 | #define VERSION_INFO "Crossfire+ Server" |
328 | |
329 | |
329 | typedef object_vector<client, &client::active> sockvec; |
330 | typedef object_vector<client, &client::active> sockvec; |
330 | |
331 | |
331 | extern sockvec clients; |
332 | extern sockvec clients; |