--- deliantra/server/include/client.h 2007/03/14 04:12:28 1.37 +++ deliantra/server/include/client.h 2007/03/15 03:30:37 1.39 @@ -223,7 +223,12 @@ player_ptr ACC (RO, pl); - int ACC (RW, rtt), ACC (RW, rttvar); /* round-trip time and -variance, if known */ + int ACC (RW, rtt), ACC (RW, rttvar); /* round-trip time and -variance, if known */ + + int ACC (RW, max_rate); // max. # of bytes to send per tick + faceidx ACC (RW, scrub_idx); // which face to send next + int ACC (RW, bg_scrub); // how many ticks till the next background face send + std::vector askface; // which faces have been requested by the client void do_destroy (); void gather_callbacks (AV *&callbacks, event_type event) const; @@ -259,6 +264,7 @@ MTH void flush (); MTH void write_outputbuffer (); + MTH int outputbuffer_len () const { return outputbuffer.len; } void send (void *buf_, int len); void send_packet (const char *buf); @@ -267,7 +273,8 @@ void send_packet (packet &sl); void send_drawinfo (const char *msg, int flags = NDI_BLACK); - MTH void send_face (faceidx facenum, bool nocache = false); + MTH void send_face (faceidx facenum); + MTH void send_image (faceidx facenum); MTH void send_faces (object *ob); MTH void send_animation (short anim_num); @@ -276,6 +283,8 @@ // called when the player has been moved MTH void floorbox_reset () { look_position = 0; floorbox_update (); } + MTH void tick (); // called every server tick to do housekeeping etc. + MTH static client *create (int fd, const char *peername); protected: