--- deliantra/server/include/client.h 2008/09/08 11:27:25 1.81 +++ deliantra/server/include/client.h 2008/12/23 22:03:06 1.82 @@ -160,16 +160,6 @@ object_vector_index ACC (RO, active); player_ptr ACC (RO, pl); - /* The following is the setup for a ring buffer for storing output - * data that the OS can't handle right away. - */ - struct - { - char data[SOCKETBUFSIZE]; - int start; - int len; - } outputbuffer; - char *ACC (RW, host); /* Which host it is connected from (ip address) */ uint8 ACC (RW, state); /* Input state of the player (name, password, etc */ @@ -283,6 +273,17 @@ MTH bool msg_suppressed (const char *msg); + /* The following is the setup for a ring buffer for storing output + * data that the OS can't handle right away. + * TODO: this member is enourmously large - optimise? + */ + struct + { + char data[SOCKETBUFSIZE]; + int start; + int len; + } outputbuffer; + bool may_execute (const packet_type *pkt) const; void execute (const packet_type *pkt, char *data, int datalen);