Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TcpmaskManager ¶
type TcpmaskManager struct {
// contains filtered or unexported fields
}
func NewTcpmaskManager ¶
func NewTcpmaskManager(tcpmasks []Tcpmask) *TcpmaskManager
func (*TcpmaskManager) WrapConnClient ¶
func (*TcpmaskManager) WrapConnServer ¶
type Udpmask ¶
type Udpmask interface {
UDP()
WrapPacketConnClient(raw net.PacketConn, first bool, leaveSize int32, end bool) (net.PacketConn, error)
WrapPacketConnServer(raw net.PacketConn, first bool, leaveSize int32, end bool) (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.