← Back to team overview

rohc team mailing list archive

Re: Reset Context

 

Hello,

> I would like to reset context (not returning to IR state) of
> compressor/decompressor without destroying them, is it possible ?

The API function rohc_comp_force_contexts_reinit() forces the compressor
to re-initialize all its contexts.

A call to that function makes all contexts restart their initialization
with the remote decompressor, ie. they go in the lowest compression
state. This function can be used once the ROHC channel is established
again after a network interruption.

For more details, see the documentation:
https://rohc-lib.org/support/documentation/API/rohc-doc-1.7.0/group__rohc__comp.html#gaff46258f600f27821e05fe6b69eaf976

Regards,
Didier


Follow ups

References