rohc_comp_set_periodic_refreshes − Set the timeouts in packets for IR and FO periodic refreshes.
#include <rohc/rohc_comp.h>
bool
rohc_comp_set_periodic_refreshes(
struct rohc_comp *const comp,
const size_t ir_timeout,
const size_t fo_timeout
);
Set the timeout values for IR and FO periodic refreshes. The IR timeout shall be greater than the FO timeout. Both timeouts are expressed in number of compressed packets.
The IR timeout is set to CHANGE_TO_IR_COUNT by default. The FO timeout is set to CHANGE_TO_FO_COUNT by default.
comp |
The ROHC compressor |
ir_timeout
The number of packets to compress before going back to IR state to force a context refresh
fo_timeout
The number of packets to compress before going back to FO state to force a context refresh
true in case of success, false in case of failure
The values can not be modified after library initialization
rohc_comp.h(3), CHANGE_TO_IR_COUNT(3), CHANGE_TO_FO_COUNT(3)