inbound

package
v5.23.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 29 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proxy_vlite_inbound_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Handler

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

func NewUDPInboundHandler

func NewUDPInboundHandler(ctx context.Context, config *UDPProtocolConfig) (*Handler, error)

func (*Handler) Network

func (h *Handler) Network() []net.Network

func (*Handler) Process

func (h *Handler) Process(ctx context.Context, network net.Network, conn internet.Connection, dispatcher routing.Dispatcher) error

type UDPProtocolConfig

type UDPProtocolConfig struct {
	Password                    string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	ScramblePacket              bool   `protobuf:"varint,4,opt,name=scramble_packet,json=scramblePacket,proto3" json:"scramble_packet,omitempty"`
	EnableFec                   bool   `protobuf:"varint,5,opt,name=enable_fec,json=enableFec,proto3" json:"enable_fec,omitempty"`
	EnableStabilization         bool   `protobuf:"varint,6,opt,name=enable_stabilization,json=enableStabilization,proto3" json:"enable_stabilization,omitempty"`
	EnableRenegotiation         bool   `protobuf:"varint,7,opt,name=enable_renegotiation,json=enableRenegotiation,proto3" json:"enable_renegotiation,omitempty"`
	HandshakeMaskingPaddingSize uint32 `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UDPProtocolConfig) Descriptor deprecated

func (*UDPProtocolConfig) Descriptor() ([]byte, []int)

Deprecated: Use UDPProtocolConfig.ProtoReflect.Descriptor instead.

func (*UDPProtocolConfig) GetEnableFec

func (x *UDPProtocolConfig) GetEnableFec() bool

func (*UDPProtocolConfig) GetEnableRenegotiation

func (x *UDPProtocolConfig) GetEnableRenegotiation() bool

func (*UDPProtocolConfig) GetEnableStabilization

func (x *UDPProtocolConfig) GetEnableStabilization() bool

func (*UDPProtocolConfig) GetHandshakeMaskingPaddingSize

func (x *UDPProtocolConfig) GetHandshakeMaskingPaddingSize() uint32

func (*UDPProtocolConfig) GetPassword

func (x *UDPProtocolConfig) GetPassword() string

func (*UDPProtocolConfig) GetScramblePacket

func (x *UDPProtocolConfig) GetScramblePacket() bool

func (*UDPProtocolConfig) ProtoMessage

func (*UDPProtocolConfig) ProtoMessage()

func (*UDPProtocolConfig) ProtoReflect

func (x *UDPProtocolConfig) ProtoReflect() protoreflect.Message

func (*UDPProtocolConfig) Reset

func (x *UDPProtocolConfig) Reset()

func (*UDPProtocolConfig) String

func (x *UDPProtocolConfig) String() string

Jump to

Keyboard shortcuts

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