go-stun
go-stun copied to clipboard
Question: Candidate Gathering
How difficult would you consider adding this feature to be?
Local candidate gathering is based on local interfaces and tunnels according to the rfc. I'm not sure how tunnel discovery would work. As for other possible candidates, this is where STUN and TURN come in correct? So this really only requires writing a method that gathers candidates using the STUN server you have already created? In the simple form; expanding to TURN later.
@4ydx Yes, exactly, ICE may use candidates discovered by STUN (server reflexive) and TURN (relayed) candidates. Right now I am working on multiplexed STUN transport. It allows usage of ICE or other protocols (such as RTP, RTCP, DTLS) over the same net.Conn. Gathering ICE candidates is pretty simple. But there are other procedures to implement: prioritizing, selecting pairs, restarting, etc.