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.81 by root, Mon Sep 8 11:27:25 2008 UTC vs.
Revision 1.82 by root, Tue Dec 23 22:03:06 2008 UTC

158 unsigned int inbuf_len; // number of bytes valid in inbuf 158 unsigned int inbuf_len; // number of bytes valid in inbuf
159 statsinfo stats; 159 statsinfo stats;
160 object_vector_index ACC (RO, active); 160 object_vector_index ACC (RO, active);
161 player_ptr ACC (RO, pl); 161 player_ptr ACC (RO, pl);
162 162
163 /* The following is the setup for a ring buffer for storing output
164 * data that the OS can't handle right away.
165 */
166 struct
167 {
168 char data[SOCKETBUFSIZE];
169 int start;
170 int len;
171 } outputbuffer;
172
173 char *ACC (RW, host); /* Which host it is connected from (ip address) */ 163 char *ACC (RW, host); /* Which host it is connected from (ip address) */
174 uint8 ACC (RW, state); /* Input state of the player (name, password, etc */ 164 uint8 ACC (RW, state); /* Input state of the player (name, password, etc */
175 165
176 sint8 ACC (RW, last_level); /* Last level we sent to client */ 166 sint8 ACC (RW, last_level); /* Last level we sent to client */
177 uint16 ACC (RW, last_flags); /* fire/run on flags for last tick */ 167 uint16 ACC (RW, last_flags); /* fire/run on flags for last tick */
280 int count; 270 int count;
281 char msg[MSG_BUF_SIZE]; 271 char msg[MSG_BUF_SIZE];
282 } msgbuf[MSG_BUF_COUNT]; 272 } msgbuf[MSG_BUF_COUNT];
283 273
284 MTH bool msg_suppressed (const char *msg); 274 MTH bool msg_suppressed (const char *msg);
275
276 /* The following is the setup for a ring buffer for storing output
277 * data that the OS can't handle right away.
278 * TODO: this member is enourmously large - optimise?
279 */
280 struct
281 {
282 char data[SOCKETBUFSIZE];
283 int start;
284 int len;
285 } outputbuffer;
285 286
286 bool may_execute (const packet_type *pkt) const; 287 bool may_execute (const packet_type *pkt) const;
287 void execute (const packet_type *pkt, char *data, int datalen); 288 void execute (const packet_type *pkt, char *data, int datalen);
288 289
289 void queue_command (packet_type *handler, char *data, int datalen); 290 void queue_command (packet_type *handler, char *data, int datalen);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines