Add RFC4571 framing to ice-tcp for MS-TURN
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Sat, 12 Apr 2014 03:11:04 +0000 (23:11 -0400)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Sat, 17 May 2014 04:22:35 +0000 (00:22 -0400)
commit2de25cfdcc7f3ad8861ccc9d248190f14a7c9a31
tree2993e2de57faa21c68b35d198d3dfbb1c92a4af1
parent7923b33d953ee3c2236104d2981a3988a496e680
Add RFC4571 framing to ice-tcp for MS-TURN

Data and STUN messages sent over TCP MUST follow the framing method
specified in [RFC4571] section 2. We will frame every outgoing packet
and split it into 62KB frames when sending, and on reception, we will
unframe the rfc4571. For now, we only unframe for udp-turn tcp-act/pass
candidates, which means only for MS-TURN over TCP.
We still need to do the unframing for real ice-tcp candidates, then add
support for reading the data in a serialized way.
agent/agent.c