← Back to team overview

rohc team mailing list archive

Re: [Question #276107]: Current CID in use

 

Question #276107 on rohc changed:
https://answers.launchpad.net/rohc/+question/276107

    Status: Open => Answered

Didier Barvaux proposed the following answer:
Hello,

You may get the information from the ROHC compressor with the
rohc_comp_get_general_info() function and then reading the contexts_nr
field of the rohc_comp_general_info_t structure.

* documentation for rohc_comp_get_general_info():
https://rohc-lib.org/support/documentation/API/rohc-doc-1.7.0/group__rohc__comp.html#ga558fa49910707ba69845d881ba054fcf

* documentation for rohc_comp_general_info_t:
https://rohc-lib.org/support/documentation/API/rohc-doc-1.7.0/structrohc__comp__general__info__t.html

* example in the non-regression test:
https://github.com/didier-barvaux/rohc/blob/master/test/non_regression/test_non_regression.c#L535


A similar function exists for the decompressor rohc_decomp_get_general_info():
https://rohc-lib.org/support/documentation/API/rohc-doc-1.7.0/group__rohc__decomp.html#ga37cf0aa64dbe8c89223de7f15a424a90


Regards,
Didier

-- 
You received this question notification because your team ROHC Team is
an answer contact for rohc.