Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶ added in v1.2.0
AuthHandler is a callback used to handle incoming auth requests, allowing users to customize Pion TURN with custom behavior
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a STUN server client
func NewClient ¶ added in v1.2.0
func NewClient(config *ClientConfig) (*Client, error)
NewClient returns a new Client instance. listeningAddress is the address and port to listen on, default "0.0.0.0:0"
type ClientConfig ¶ added in v1.2.0
type ClientConfig struct {
ListeningAddress string
LoggerFactory logging.LoggerFactory
Net *vnet.Net
}
ClientConfig is a bag of config parameters for Client.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an instance of the Pion TURN server
func NewServer ¶ added in v1.2.0
func NewServer(config *ServerConfig) *Server
NewServer creates the Pion TURN server
func (*Server) AddListeningIPAddr ¶ added in v1.2.0
AddListeningIPAddr adds a listening IP address. This method must be called before calling Start().
type ServerConfig ¶ added in v1.2.0
type ServerConfig struct {
Realm string
AuthHandler AuthHandler
ChannelBindTimeout time.Duration
ListeningPort int
LoggerFactory logging.LoggerFactory
Net *vnet.Net
}
ServerConfig is a bag of config parameters for Server.
Click to show internal directories.
Click to hide internal directories.
