Documentation
¶
Index ¶
Constants ¶
View Source
const (
UDPSize = 4096
)
Variables ¶
This section is empty.
Functions ¶
func NewTcpListener ¶
Types ¶
type TcpMaskConn ¶
type TcpmaskManager ¶
type TcpmaskManager struct {
// contains filtered or unexported fields
}
func NewTcpmaskManager ¶
func NewTcpmaskManager(tcpmasks []Tcpmask) *TcpmaskManager
func (*TcpmaskManager) WrapConnClient ¶
func (*TcpmaskManager) WrapConnServer ¶
func (*TcpmaskManager) WrapListener ¶
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)
Click to show internal directories.
Click to hide internal directories.