turn

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package turn contains the STUN/TURN server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// PublicIP is the public IP address of the TURN server.
	PublicIP string
	// ListenAddressUDP is the address the TURN server uses for request
	// handling and STUN relays.
	// Defaults to 0.0.0.0.
	ListenAddressUDP string
	// ListenPortUDP is the port the TURN server listens on for UDP requests.
	ListenPortUDP int
	// Realm is the realm used for authentication.
	Realm string
	// PortRange is the range of ports the TURN server will use for relaying.
	PortRange string
}

Options contains the options for the TURN server.

type Server

type Server struct {
	*turn.Server
}

Server is a TURN server.

func NewServer

func NewServer(o *Options) (*Server, error)

NewServer creates and starts a new TURN server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL