Merge branch 'maint-0.4.8' into release-0.4.8
[tor.git] / src / trunnel / flow_control_cells.trunnel
blob9d07b568a919dc29739892232424de58583b7f87
1 /* This file contains the xon and xoff cell definitions, for flow control. */
3 /* xoff cell definition. Tells the other endpoint to stop sending, because
4  * we have too much data queued for this stream. */
5 struct xoff_cell {
6   /* Version field. */
7   u8 version IN [0x00];
10 /* xon cell declaration. Tells the other endpoint to resume sending and/or
11  * update its sending rate on this stream based on advisory information. */
12 struct xon_cell {
13   /* Version field. */
14   u8 version IN [0x00];
16   /* Advisory field: The ewma rate of socket drain we have seen so far
17    * on this stream, in kilobytes/sec (1000 bytes/sec). May be zero,
18    * which means no rate advice. */
19   u32 kbps_ewma;