paullouisageneau / libjuice

JUICE is a UDP Interactive Connectivity Establishment library
Mozilla Public License 2.0
410 stars 76 forks source link

How does the stun/trun server get the candidates of the peer #169

Closed fengshangren closed 1 year ago

fengshangren commented 2 years ago

How does the stun/trun server get the candidates of the peer

paullouisageneau commented 2 years ago

What do you mean?

fengshangren commented 2 years ago

For example, how to exchange the sdp between the A side and the B side? It seems that libjuice itself can't do it.

paullouisageneau commented 2 years ago

The STUN/TURN are used by the ICE protocol to gather local candidates, then it's up to the user application to transmit the description and candidates to the other side. This is typically done with a signaling server like in the case of SIP or WebRTC.

fengshangren commented 2 years ago

Can you talk about the principle of libjuice's TURN? How does he forward it?

paullouisageneau commented 1 year ago

TURN servers are not specific to libjuice. They allow to allocate a UDP port an the server to relay the UDP traffic if the network is blocked on the client, typically by an endpoint-dependent (aka symmetric) NAT that can't be traversed.

paullouisageneau commented 1 year ago

I'm closing this as it's not an issue.