Commit Graph

5 Commits

Author SHA1 Message Date
korymiller1489
166df5842e Add Marshal and Unmarshal to Candidate Base
Move string representation of candidates into pion/ice from pion/webrtc
2020-09-12 00:23:24 -07:00
Jerko Steiner
b828116017 Make TCP ICE candidates have lower preference
Closes #262. Adds the changes in determining local preference according
to RFC 6544, section 4.2.
2020-08-10 21:02:15 +02:00
David Hamilton
5870fb0c99 Added tests for lastSent and lastReceived get/set
Validate the new behaviour when these atomic vars have not been
set yet.
2019-12-11 10:32:37 -08:00
Sean DuBois
63b37975b6 Make Candidate an interface
This change will allow us to have custom logic and members
per interface type. Relay candidates will have a completely different
read loop, and candidate specific state.

Relates to #47
2019-05-24 15:55:42 -07:00
Michael MacDonald
ad7c8697fd Candidate priority is incorrectly calculated
Some constants were being incorrectly generated using 2^N (XOR)
instead of 1 << N. This resulted in incorrect candidate priorities
being used to evaluate candidate pairs.

Resolves #14.
2019-04-11 13:40:39 -04:00