backend_dtls

package
v0.0.0-...-fde97f4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MTU = 1500 - 40 - 8

MTU is reduced by the size of an IPv6 header and UDP header

Variables

This section is empty.

Functions

func RunDialerFromConfig

func RunDialerFromConfig(ctx context.Context, pr backends.ProtocolRunner, cost float32, params config.Params) error

RunDialerFromConfig runs a dialer from settings in a config.Params

func RunListenerFromConfig

func RunListenerFromConfig(ctx context.Context, pr backends.ProtocolRunner, cost float32, params config.Params) error

RunListenerFromConfig runs a listener from settings in a config.Params

Types

type Dialer

type Dialer struct {
	DestAddr           net.IP
	DestPort           uint16
	Cost               float32
	PSK                string
	InsecureSkipVerify bool
	RootCAs            *x509.CertPool
	ClientCert         *tls.Certificate
}

func (*Dialer) Run

type Listener

type Listener struct {
	ListenAddr        net.IP
	ListenPort        uint16
	Cost              float32
	PSK               string
	RequireClientCert bool
	ClientCAs         *x509.CertPool
	Certificate       tls.Certificate
}

func (*Listener) Run

Jump to

Keyboard shortcuts

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