finalmask

package
v0.0.0-...-834b6e2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UDPSize = 4096
)

Variables

This section is empty.

Functions

func NewTcpListener

func NewTcpListener(m *TcpmaskManager, l net.Listener) (net.Listener, error)

func UnwrapTcpMask

func UnwrapTcpMask(conn net.Conn) net.Conn

Types

type TcpMaskConn

type TcpMaskConn interface {
	TcpMaskConn()
	RawConn() net.Conn
	Splice() bool
}

type Tcpmask

type Tcpmask interface {
	TCP()

	WrapConnClient(net.Conn) (net.Conn, error)
	WrapConnServer(net.Conn) (net.Conn, error)
}

type TcpmaskManager

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

func NewTcpmaskManager

func NewTcpmaskManager(tcpmasks []Tcpmask) *TcpmaskManager

func (*TcpmaskManager) WrapConnClient

func (m *TcpmaskManager) WrapConnClient(raw net.Conn) (net.Conn, error)

func (*TcpmaskManager) WrapConnServer

func (m *TcpmaskManager) WrapConnServer(raw net.Conn) (net.Conn, error)

func (*TcpmaskManager) WrapListener

func (m *TcpmaskManager) WrapListener(l net.Listener) (net.Listener, error)

type Udpmask

type Udpmask interface {
	UDP()

	WrapPacketConnClient(raw net.PacketConn, level int, levelCount int) (net.PacketConn, error)
	WrapPacketConnServer(raw net.PacketConn, level int, levelCount int) (net.PacketConn, error)
}

type UdpmaskManager

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

func NewUdpmaskManager

func NewUdpmaskManager(udpmasks []Udpmask) *UdpmaskManager

func (*UdpmaskManager) WrapPacketConnClient

func (m *UdpmaskManager) WrapPacketConnClient(raw net.PacketConn) (net.PacketConn, error)

func (*UdpmaskManager) WrapPacketConnServer

func (m *UdpmaskManager) WrapPacketConnServer(raw net.PacketConn) (net.PacketConn, error)

Directories

Path Synopsis
header
mkcp
Package dns deals with encoding and decoding DNS wire format.
Package dns deals with encoding and decoding DNS wire format.
Minecraft protocol
Minecraft protocol

Jump to

Keyboard shortcuts

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