58size_t m_network_add_cost; // estimated add cost of headers
59size_t m_network_minimal_segment; // estimated minimal cost of sending 1 byte to round up to
60size_t m_network_max_segment; // recommended max size of 1 TCP transmission
61
62constsize_t m_window_size; // the number of samples to average over
63network_time_seconds m_slot_size; // the size of one slot. TODO: now hardcoded for 1 second e.g. in time_to_slot()
64// TODO for big window size, for performance better the substract on change of m_last_sample_time instead of recalculating average of eg >100 elements
65
66 boost::circular_buffer< packet_info > m_history; // the history of bw usage
67network_time_seconds m_last_sample_time; // time of last history[0] - so we know when to rotate the buffer
104virtualnetwork_time_seconds time_to_slot(network_time_seconds t) const { return std::floor( t ); } // convert exact time eg 13.7 to rounded time for slot number in history 13