Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct { N.ExtendedConn // contains filtered or unexported fields }
type HookConn ¶
type HookConn struct { N.ExtendedConn // contains filtered or unexported fields }
type HookPacketConn ¶
type HookPacketConn struct { N.PacketConn // contains filtered or unexported fields }
func NewHookPacket ¶
func NewHookPacket(conn N.PacketConn, readCounter func(n int64), writeCounter func(n int64)) *HookPacketConn
func (*HookPacketConn) ReadPacket ¶
func (*HookPacketConn) Upstream ¶
func (c *HookPacketConn) Upstream() any
func (*HookPacketConn) WritePacket ¶
type PacketConn ¶
type PacketConn struct { N.PacketConn // contains filtered or unexported fields }
func NewPacket ¶
func NewPacket(conn N.PacketConn, readCounter []*atomic.Int64, writeCounter []*atomic.Int64) *PacketConn
func (*PacketConn) ReadPacket ¶
func (*PacketConn) Upstream ¶
func (c *PacketConn) Upstream() any
func (*PacketConn) WritePacket ¶
Click to show internal directories.
Click to hide internal directories.