Documentation ¶
Index ¶
- func NewLogConn(conn net.Conn, logger log.Logger, prefix string) N.ExtendedConn
- func NewLogPacketConn(conn net.PacketConn, logger log.Logger, prefix string) N.NetPacketConn
- func NewRaceConn(conn net.Conn) N.ExtendedConn
- func PrintUpstream(obj any)
- type LogConn
- type LogPacketConn
- func (c *LogPacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (c *LogPacketConn) ReadPacket(buffer *buf.Buffer) (destination M.Socksaddr, err error)
- func (c *LogPacketConn) WritePacket(buffer *buf.Buffer, destination M.Socksaddr) error
- func (c *LogPacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
- type RaceConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogConn ¶
func NewLogPacketConn ¶
func NewLogPacketConn(conn net.PacketConn, logger log.Logger, prefix string) N.NetPacketConn
func NewRaceConn ¶
func NewRaceConn(conn net.Conn) N.ExtendedConn
func PrintUpstream ¶
func PrintUpstream(obj any)
Types ¶
type LogConn ¶
type LogConn struct { N.ExtendedConn // contains filtered or unexported fields }
type LogPacketConn ¶
type LogPacketConn struct { N.NetPacketConn // contains filtered or unexported fields }
func (*LogPacketConn) ReadPacket ¶
func (*LogPacketConn) WritePacket ¶
type RaceConn ¶
type RaceConn struct { N.ExtendedConn // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.