I'm trying to develop a prototype that employs network coding under UDP, by adding a layer under the transport layer, as shown in the figure and by by replacing TCP with UDP.
I'm looking for an example of our source code that provides a notion about the implementation. What I need is some code that takes UDP packets and performs a sort of decapsulation of their fields so that I plug in an algorithm to perform network coding.
My ultimate goal is to send video frames that adapt according to the bandwidth and network conditions.