← 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 => Needs information

Didier Barvaux requested more information:
Hello,

Maybe I could add some API such as:

   /* free a context knowing its Context ID (CID) */
   bool rohc_comp_free_context(struct rohc_comp *const comp,
                                                                 const rohc_cid_t cid);

   /* free all contexts of one profile whose last packet is older or equal than now - timeout */
   bool rohc_comp_free_old_contexts(struct rohc_comp *const comp,
                                                                           const rohc_profile_t profile_id,
                                                                           const struct rohc_ts timeout);

The 2nd function should allow you to free all contexts corresponding to
RTP streams in timeout (according to your own definition of timeout).
What do you think of?

Regards,
Didier

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