Documentation ¶
Index ¶
- type Conn
- type PacketConn
- func (c *PacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (c *PacketConn) ReadPacket(buffer *buf.Buffer) (destination M.Socksaddr, err error)
- func (c *PacketConn) ReaderReplaceable() bool
- func (c *PacketConn) SetReadDeadline(t time.Time) error
- func (c *PacketConn) Upstream() any
- func (c *PacketConn) UpstreamReader() any
- func (c *PacketConn) WriterReplaceable() bool
- type PacketReader
- func (r *PacketReader) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (r *PacketReader) ReadPacket(buffer *buf.Buffer) (destination M.Socksaddr, err error)
- func (r *PacketReader) ReaderReplaceable() bool
- func (r *PacketReader) SetReadDeadline(t time.Time) error
- func (r *PacketReader) UpstreamReader() any
- type Reader
- type TimeoutPacketReader
- type TimeoutReader
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 }
func (*Conn) ReaderReplaceable ¶
func (*Conn) UpstreamReader ¶
func (*Conn) WriterReplaceable ¶
type PacketConn ¶
type PacketConn struct { N.NetPacketConn // contains filtered or unexported fields }
func NewPacketConn ¶
func NewPacketConn(conn N.NetPacketConn) *PacketConn
func (*PacketConn) ReadPacket ¶
func (*PacketConn) ReaderReplaceable ¶
func (c *PacketConn) ReaderReplaceable() bool
func (*PacketConn) SetReadDeadline ¶
func (c *PacketConn) SetReadDeadline(t time.Time) error
func (*PacketConn) Upstream ¶
func (c *PacketConn) Upstream() any
func (*PacketConn) UpstreamReader ¶
func (c *PacketConn) UpstreamReader() any
func (*PacketConn) WriterReplaceable ¶
func (c *PacketConn) WriterReplaceable() bool
type PacketReader ¶
type PacketReader struct { TimeoutPacketReader // contains filtered or unexported fields }
func NewPacketReader ¶
func NewPacketReader(reader TimeoutPacketReader) *PacketReader
func (*PacketReader) ReadPacket ¶
func (*PacketReader) ReaderReplaceable ¶
func (r *PacketReader) ReaderReplaceable() bool
func (*PacketReader) SetReadDeadline ¶
func (r *PacketReader) SetReadDeadline(t time.Time) error
func (*PacketReader) UpstreamReader ¶
func (r *PacketReader) UpstreamReader() any
type Reader ¶
type Reader struct { N.ExtendedReader // contains filtered or unexported fields }
func NewReader ¶
func NewReader(reader TimeoutReader) *Reader
func (*Reader) ReaderReplaceable ¶
func (*Reader) UpstreamReader ¶
type TimeoutPacketReader ¶
type TimeoutPacketReader interface { N.NetPacketConn SetReadDeadline(t time.Time) error }
Click to show internal directories.
Click to hide internal directories.