Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Proxy is a an ICE Server that uses a special hostname // to indicate traffic should be proxied. Proxy = webrtc.ICEServer{ URLs: []string{"turns:" + reservedAddress}, Username: "coder", Credential: credential, } )
Functions ¶
Types ¶
type Conn ¶
func (*Conn) Closed ¶
func (c *Conn) Closed() <-chan struct{}
Closed returns a channel which is closed when the connection is.
func (*Conn) RemoteAddr ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server accepts and connects TURN allocations.
This is a thin wrapper around pion/turn that pipes connections directly to the in-memory handler.
func New ¶
New constructs a new TURN server binding to the relay address provided. The relay address is used to broadcast the location of an accepted connection.
Click to show internal directories.
Click to hide internal directories.