debugio

package
v0.0.0-...-890cd7e Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogConn

func NewLogConn(conn net.Conn, logger log.Logger, prefix string) N.ExtendedConn

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
}

func (*LogConn) Read

func (c *LogConn) Read(p []byte) (n int, err error)

func (*LogConn) ReadBuffer

func (c *LogConn) ReadBuffer(buffer *buf.Buffer) error

func (*LogConn) Upstream

func (c *LogConn) Upstream() any

func (*LogConn) Write

func (c *LogConn) Write(p []byte) (n int, err error)

func (*LogConn) WriteBuffer

func (c *LogConn) WriteBuffer(buffer *buf.Buffer) error

type LogPacketConn

type LogPacketConn struct {
	N.NetPacketConn
	// contains filtered or unexported fields
}

func (*LogPacketConn) ReadFrom

func (c *LogPacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)

func (*LogPacketConn) ReadPacket

func (c *LogPacketConn) ReadPacket(buffer *buf.Buffer) (destination M.Socksaddr, err error)

func (*LogPacketConn) WritePacket

func (c *LogPacketConn) WritePacket(buffer *buf.Buffer, destination M.Socksaddr) error

func (*LogPacketConn) WriteTo

func (c *LogPacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error)

type RaceConn

type RaceConn struct {
	N.ExtendedConn
	// contains filtered or unexported fields
}

func (*RaceConn) Read

func (c *RaceConn) Read(p []byte) (n int, err error)

func (*RaceConn) ReadBuffer

func (c *RaceConn) ReadBuffer(buffer *buf.Buffer) error

func (*RaceConn) Upstream

func (c *RaceConn) Upstream() any

func (*RaceConn) Write

func (c *RaceConn) Write(p []byte) (n int, err error)

func (*RaceConn) WriteBuffer

func (c *RaceConn) WriteBuffer(buffer *buf.Buffer) error

Jump to

Keyboard shortcuts

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