Documentation ¶
Index ¶
- Variables
- func ListenDTLS(ctx context.Context, address net.Address, port net.Port, ...) (internet.Listener, error)
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetMode() DTLSMode
- func (x *Config) GetMtu() uint32
- func (x *Config) GetPsk() []byte
- func (x *Config) GetReplayProtectionWindow() uint32
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type ConnectionID
- type DTLSMode
- type Listener
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DTLSMode_name = map[int32]string{ 0: "INVALID", 1: "PSK", } DTLSMode_value = map[string]int32{ "INVALID": 0, "PSK": 1, } )
Enum value maps for DTLSMode.
View Source
var File_transport_internet_dtls_config_proto protoreflect.FileDescriptor
Functions ¶
func ListenDTLS ¶
Types ¶
type Config ¶
type Config struct { Mode DTLSMode `protobuf:"varint,1,opt,name=mode,proto3,enum=v2ray.core.transport.internet.dtls.DTLSMode" json:"mode,omitempty"` Psk []byte `protobuf:"bytes,2,opt,name=psk,proto3" json:"psk,omitempty"` Mtu uint32 `protobuf:"varint,3,opt,name=mtu,proto3" json:"mtu,omitempty"` ReplayProtectionWindow uint32 `` /* 130-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetReplayProtectionWindow ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type DTLSMode ¶
type DTLSMode int32
func (DTLSMode) Descriptor ¶
func (DTLSMode) Descriptor() protoreflect.EnumDescriptor
func (DTLSMode) EnumDescriptor
deprecated
func (DTLSMode) Number ¶
func (x DTLSMode) Number() protoreflect.EnumNumber
func (DTLSMode) Type ¶
func (DTLSMode) Type() protoreflect.EnumType
type Listener ¶
func NewListener ¶
func (*Listener) Remove ¶
func (l *Listener) Remove(src net.Destination)
Click to show internal directories.
Click to hide internal directories.