traffic

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	Addr                string
	Protocol            string // "tcp", "udp", or "both"
	EnableFragmentation bool   // UDP fragmentation enabled
	TCPListener         net.Listener
	UDPConn             net.PacketConn
	Pool                *pool.ConnectionPool
	// contains filtered or unexported fields
}

Listener represents a traffic listener

type Manager

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

Manager manages traffic listeners

func NewManager

func NewManager(conf *config.Server, pools map[string]*pool.ConnectionPool, logger zerolog.Logger) *Manager

NewManager creates a new traffic manager

func (*Manager) Start

func (m *Manager) Start(ctx context.Context) error

Start starts all traffic listeners

func (*Manager) Stop

func (m *Manager) Stop()

Stop stops all traffic listeners

type UDPHandler

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

UDPHandler handles UDP traffic using QUIC datagrams

type UDPSession

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

UDPSession represents a UDP session using QUIC datagrams

Jump to

Keyboard shortcuts

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