Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass Candidate Protocol arounds along with Address(es) so that routing to the correct ICE route can be done cleanly. #391

Merged
merged 7 commits into from
Oct 18, 2023

Conversation

algesten
Copy link
Owner

Add some commits to #389.

The changes from 389 are:

  1. Use TryInto to allow for more ergonomic creation of Candidates. I.e. Candidate::host(ip, "udp").
  2. Move/rename CandidateProtocol to -> net::Protocol to avoid dependency direction io -> ice.
  3. Use the &str TryInto in tests to reduce verbosity.

Close #389

efer-ms and others added 7 commits October 17, 2023 15:07
a string, and then utilize CandidateProtocol along
with SocketAddr to uniquely identify a Candidates and
Candidate pairs.
This makes it so we can use "udp" as a &str input instead of always
importing the full CandidateProtocol enum.
This is to avoid dependency in the "wrong" direction. The Protocol is exposed
in io/net::Transmit and thus can't be from the ice::* module.
It sits in io/net:: and is more broad than only for ICE candidates.
@algesten algesten force-pushed the efer-ms-efer/candidates branch from e018e85 to c99e86e Compare October 18, 2023 09:33
@algesten algesten merged commit 5f04aa6 into main Oct 18, 2023
22 checks passed
@algesten algesten deleted the efer-ms-efer/candidates branch October 18, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants