dtls

package
v0.0.0-...-7855ee1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2017 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionDTLS10 uint16 = 0xfeff
	VersionDTLS12 uint16 = 0xfefd
)
View Source
const (
	SRTP_AES128_CM_HMAC_SHA1_80 = 0x0001
	SRTP_AES128_CM_HMAC_SHA1_32 = 0x0002
	SRTP_NULL_HMAC_SHA1_80      = 0x0005
	SRTP_NULL_HMAC_SHA1_32      = 0x0006
)
View Source
const (
	TLS_RSA_WITH_AES_128_CBC_SHA uint16 = 0x002f
)

Variables

This section is empty.

Functions

func Listen

func Listen(network, laddr string, config *Config) (net.Listener, error)

Types

type Config

type Config struct {
	Rand                   io.Reader
	Time                   func() time.Time
	MTU                    int
	RetransmissionTimeout  time.Duration
	ReadTimeout            time.Duration
	RootCAs                *x509.CertPool
	ServerName             string
	CipherSuites           []uint16
	SRTPProtectionProfiles []uint16
	MinVersion             uint16
	MaxVersion             uint16
	InsecureSkipVerify     bool
	Logf                   func(format string, args ...interface{})
}

func (*Config) Clone

func (c *Config) Clone() *Config

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(conn net.Conn, config *Config) (*Conn, error)

func (*Conn) Close

func (c *Conn) Close() error

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

func NewListener

func NewListener(c *net.UDPConn, config *Config) *Listener

func (*Listener) Accept

func (l *Listener) Accept() (net.Conn, error)

func (*Listener) Addr

func (l *Listener) Addr() net.Addr

func (*Listener) Close

func (l *Listener) Close() error

Jump to

Keyboard shortcuts

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