… | |
… | |
197 | int ACC (RW, rate_avail); // current rate balance |
197 | int ACC (RW, rate_avail); // current rate balance |
198 | int ACC (RW, max_rate); // max. # of bytes to send per tick |
198 | int ACC (RW, max_rate); // max. # of bytes to send per tick |
199 | faceidx ACC (RW, scrub_idx); // which face to send next |
199 | faceidx ACC (RW, scrub_idx); // which face to send next |
200 | int ACC (RW, bg_scrub); // how many ticks till the next background face send |
200 | int ACC (RW, bg_scrub); // how many ticks till the next background face send |
201 | |
201 | |
202 | faceidx partial_face; |
202 | struct ixsend { |
203 | uint32 partial_face_ofs; // if != 0, need to send remaining bytes of partial_face |
203 | int16_t pri; // unused |
|
|
204 | faceidx idx; |
|
|
205 | uint32_t ofs; // if != 0, need to send remaining bytes of partial_face |
|
|
206 | }; |
204 | std::vector<faceidx, slice_allocator<faceidx> > ixface; // which faces to send to the client using ix |
207 | std::vector<ixsend, slice_allocator<ixsend> > ixface; // which faces to send to the client using ix |
205 | |
208 | |
206 | std::vector<faceidx, slice_allocator<faceidx> > fxface; // which faces to send using fx |
209 | std::vector<faceidx, slice_allocator<faceidx> > fxface; // which faces to send using fx |
207 | MTH void flush_fx (); // send fx if required |
210 | MTH void flush_fx (); // send fx if required |
208 | |
211 | |
209 | void do_destroy (); |
212 | void do_destroy (); |