webrtc-for-the-curious / webrtc-for-the-curious

WebRTC for the Curious: Go beyond the APIs
https://webrtcforthecurious.com
Creative Commons Zero v1.0 Universal
1.97k stars 194 forks source link

Why need `ice-pwd` and `ice-ufrag` when we have DTLS #305

Open WofWca opened 1 year ago

WofWca commented 1 year ago

I don't know, but this is a question I had when reading about these.

UPD: it's later touched here so maybe at least say it.

voluntas commented 1 year ago

WebRTC does not use DTLS for communication for UDP hole punching. STUN Req/Res is used directly.

I think it is better to use Discussions instead of Issues for questions about the WebRTC mechanism itself, and I prefer to use Issues as a place to exchange written issues.

https://github.com/webrtc-for-the-curious/webrtc-for-the-curious/discussions

WofWca commented 1 year ago

What I mean is that I think this should be reflected in the book. Or does it still hold?

voluntas commented 1 year ago

Why need ice-pwd and ice-ufrag when we have DTLS

Ice-pwd and ice-ufrag are still used in WebRTC, where peers send STUN Req/Res to each other to realize UDP hole punching.

Does this answer your question?

WofWca commented 1 year ago

Or does it still hold?

I'm sorry, I meant the point about using discussions XD Thanks for the answer!