rohc team mailing list archive
-
rohc team
-
Mailing list archive
-
Message #01234
Re: [Question #233909]: about feedback - rohc_feedback_flush()
Question #233909 on rohc changed:
https://answers.launchpad.net/rohc/+question/233909
Status: Open => Needs information
Didier Barvaux requested more information:
> I want to implement a simple logic to check if there is feedback indeed:
>
> If (there is a feedback packet in local compressor & no piggyback available)
> {send standalone feedback by using rohc_feedback_flush()}
> elseif (there is a feedback packet & there is reverse compressed-packet to send)
> {send piggyback feedback by using rohc_decompress()}
> end
>
> My major concern is how to check if the feedback packet does exist. It is
> better not to change the library but to check it through API.
Your algorithm might simplified to:
If (no piggyback available)
{send standalone feedback by using rohc_feedback_flush()}
elseif (there is reverse compressed-packet to send)
{send piggyback feedback by using rohc_decompress()}
end
So, it looks like you don't need a way to check if a not-yet-sent
feedback packet is stored in the compressor ;-)
Joke aside, the algorithm you described is probably incomplete or
simplified. If the full algo requires the information, we can extend the
library API to add a new function. But first tell me what is your full
algorithm so that we could design the function the best way.
Regards,
Didier
--
You received this question notification because you are a member of ROHC
Team, which is an answer contact for rohc.