… | |
… | |
190 | uint8 ACC (RW, faceset); // CF+ selected faceset |
190 | uint8 ACC (RW, faceset); // CF+ selected faceset |
191 | |
191 | |
192 | tstamp ACC (RW, last_send); // last data send on socket. |
192 | tstamp ACC (RW, last_send); // last data send on socket. |
193 | |
193 | |
194 | int ACC (RW, rtt), ACC (RW, rttvar); /* round-trip time and -variance, if known */ |
194 | int ACC (RW, rtt), ACC (RW, rttvar); /* round-trip time and -variance, if known */ |
|
|
195 | int ACC (RW, outq); // current socket outq length, or 0 if indeterminable |
195 | |
196 | |
196 | int ACC (RW, rate_avail); // current rate balance |
197 | int ACC (RW, rate_avail); // current rate balance |
197 | 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 |
198 | faceidx ACC (RW, scrub_idx); // which face to send next |
199 | faceidx ACC (RW, scrub_idx); // which face to send next |
199 | 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 |
… | |
… | |
259 | void send_packet (const char *buf, int len); |
260 | void send_packet (const char *buf, int len); |
260 | void send_packet_printf (const char *format, ...); |
261 | void send_packet_printf (const char *format, ...); |
261 | void send_packet (packet &sl); |
262 | void send_packet (packet &sl); |
262 | |
263 | |
263 | void send_drawinfo (const char *msg, int flags = NDI_BLACK); |
264 | void send_drawinfo (const char *msg, int flags = NDI_BLACK); |
|
|
265 | |
|
|
266 | MTH bool must_send_face (faceidx facenum) |
|
|
267 | { |
|
|
268 | if (faces_sent[facenum]) |
|
|
269 | return false; |
|
|
270 | |
|
|
271 | faces_sent[facenum] = true; |
|
|
272 | return true; |
|
|
273 | } |
|
|
274 | |
264 | MTH void send_face (faceidx facenum); |
275 | MTH void send_face (faceidx facenum); |
265 | MTH void send_image (faceidx facenum); |
276 | MTH void send_image (faceidx facenum); |
266 | MTH void send_faces (object *ob); |
277 | MTH void send_faces (object *ob); |
267 | MTH void send_animation (short anim_num); |
278 | MTH void send_animation (short anim_num); |
268 | void send_msg (int color, const char *type, const char *msg); |
279 | void send_msg (int color, const char *type, const char *msg); |