Versions in this module Expand all Collapse all v1 v1.0.0 Dec 9, 2024 Changes in this version + var DTLSMode_name = map[int32]string + var DTLSMode_value = map[string]int32 + var File_transport_internet_dtls_config_proto protoreflect.FileDescriptor + func ListenDTLS(ctx context.Context, address net.Address, port net.Port, ...) (internet.Listener, error) + type Config struct + Mode DTLSMode + Mtu uint32 + Psk []byte + ReplayProtectionWindow uint32 + func (*Config) Descriptor() ([]byte, []int) + func (*Config) ProtoMessage() + func (x *Config) GetMode() DTLSMode + func (x *Config) GetMtu() uint32 + func (x *Config) GetPsk() []byte + func (x *Config) GetReplayProtectionWindow() uint32 + func (x *Config) ProtoReflect() protoreflect.Message + func (x *Config) Reset() + func (x *Config) String() string + type ConnectionID struct + Port net.Port + Remote net.Address + type DTLSMode int32 + const DTLSMode_INVALID + const DTLSMode_PSK + func (DTLSMode) Descriptor() protoreflect.EnumDescriptor + func (DTLSMode) EnumDescriptor() ([]byte, []int) + func (DTLSMode) Type() protoreflect.EnumType + func (x DTLSMode) Enum() *DTLSMode + func (x DTLSMode) Number() protoreflect.EnumNumber + func (x DTLSMode) String() string + type Listener struct + func NewListener(ctx context.Context, address net.Address, port net.Port, ...) (*Listener, error) + func (l *Listener) Addr() net.Addr + func (l *Listener) Close() error + func (l *Listener) OnReceive(payload *buf.Buffer, src net.Destination) + func (l *Listener) Remove(src net.Destination)