ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/client.h
(Generate patch)

Comparing deliantra/server/include/client.h (file contents):
Revision 1.23 by pippijn, Sat Jan 6 14:42:30 2007 UTC vs.
Revision 1.24 by root, Sun Jan 7 02:39:14 2007 UTC

92 ST_DEAD, // socket is dead 92 ST_DEAD, // socket is dead
93 ST_SETUP, // initial handshake / setup / login 93 ST_SETUP, // initial handshake / setup / login
94 ST_PLAYING, // logged in an playing 94 ST_PLAYING, // logged in an playing
95 ST_CUSTOM, // waiting for custom reply 95 ST_CUSTOM, // waiting for custom reply
96 96
97 ST_CONFIRM_QUIT,
98 ST_CHANGE_CLASS, 97 ST_CHANGE_CLASS,
99 ST_GET_PARTY_PASSWORD, 98 ST_GET_PARTY_PASSWORD,
100}; 99};
101 100
102// a handler for a specific type of packet 101// a handler for a specific type of packet
170{ 169{
171 int ACC (RW, fd); 170 int ACC (RW, fd);
172 unsigned int inbuf_len; // number of bytes valid in inbuf 171 unsigned int inbuf_len; // number of bytes valid in inbuf
173 uint8 *faces_sent; // This is a bitmap on sent face status 172 uint8 *faces_sent; // This is a bitmap on sent face status
174 statsinfo stats; 173 statsinfo stats;
174 int ACC (RO, active);
175 175
176 client_container cc_inv, cc_other; 176 client_container cc_inv, cc_other;
177 Buffer outputbuffer; 177 Buffer outputbuffer;
178 178
179 char *ACC (RW, host); /* Which host it is connected from (ip address) */ 179 char *ACC (RW, host); /* Which host it is connected from (ip address) */
307 307
308#define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ 308#define VERSION_CS 1023 /* version >= 1023 understand setup cmd */
309#define VERSION_SC 1027 309#define VERSION_SC 1027
310#define VERSION_INFO "Crossfire+ Server" 310#define VERSION_INFO "Crossfire+ Server"
311 311
312typedef unordered_vector<client *> sockvec; 312typedef object_vector<client, &client::active> sockvec;
313 313
314extern sockvec clients; 314extern sockvec clients;
315
316#define for_all_clients(var) \
317 for (int _i = 0; _i < clients.size (); ++_i) \
318 declvar (client *, var, clients [_i])
319
315extern int nrofpixmaps; //TODO: hrmpf, should go 320extern int nrofpixmaps; //TODO: hrmpf, should go
316 321
317#endif 322#endif
318 323

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines