Documentation ¶
Index ¶
- func NeedAdditionalReadDeadline(rawReader any) bool
- func NewConn(conn net.Conn) N.ExtendedConn
- func NewFallbackConn(conn net.Conn) N.ExtendedConn
- func NewFallbackPacketConn(conn N.NetPacketConn) N.NetPacketConn
- func NewPacketConn(conn N.NetPacketConn) N.NetPacketConn
- func NewSerialConn(conn N.ExtendedConn) N.ExtendedConn
- func NewSerialPacketConn(conn N.NetPacketConn) N.NetPacketConn
- type Conn
- func (c *Conn) NeedAdditionalReadDeadline() bool
- func (c *Conn) Read(p []byte) (n int, err error)
- func (c *Conn) ReadBuffer(buffer *buf.Buffer) error
- func (c *Conn) ReaderReplaceable() bool
- func (c *Conn) SetReadDeadline(t time.Time) error
- func (c *Conn) Upstream() any
- func (c *Conn) UpstreamReader() any
- func (c *Conn) WriterReplaceable() bool
- type PacketConn
- func (c *PacketConn) NeedAdditionalReadDeadline() bool
- 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) WriterReplaceable() bool
- type PacketReader
- type Reader
- type SerialConn
- type SerialPacketConn
- type TimeoutPacketReader
- type TimeoutReader
- type WithoutReadDeadline
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NeedAdditionalReadDeadline ¶ added in v0.2.4
func NewFallbackConn ¶ added in v0.2.4
func NewFallbackConn(conn net.Conn) N.ExtendedConn
func NewFallbackPacketConn ¶ added in v0.2.4
func NewFallbackPacketConn(conn N.NetPacketConn) N.NetPacketConn
func NewPacketConn ¶
func NewPacketConn(conn N.NetPacketConn) N.NetPacketConn
func NewSerialConn ¶ added in v0.2.18
func NewSerialConn(conn N.ExtendedConn) N.ExtendedConn
func NewSerialPacketConn ¶ added in v0.2.18
func NewSerialPacketConn(conn N.NetPacketConn) N.NetPacketConn
Types ¶
type Conn ¶
type Conn struct { N.ExtendedConn // contains filtered or unexported fields }
func (*Conn) NeedAdditionalReadDeadline ¶ added in v0.2.4
func (*Conn) ReaderReplaceable ¶
func (*Conn) UpstreamReader ¶
func (*Conn) WriterReplaceable ¶
type PacketConn ¶
type PacketConn struct { N.NetPacketConn // contains filtered or unexported fields }
func (*PacketConn) NeedAdditionalReadDeadline ¶ added in v0.2.4
func (c *PacketConn) NeedAdditionalReadDeadline() bool
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) WriterReplaceable ¶
func (c *PacketConn) WriterReplaceable() bool
type PacketReader ¶
type PacketReader interface { TimeoutPacketReader N.WithUpstreamReader N.ReaderWithUpstream }
func NewFallbackPacketReader ¶ added in v0.2.4
func NewFallbackPacketReader(timeoutReader TimeoutPacketReader) PacketReader
func NewPacketReader ¶
func NewPacketReader(timeoutReader TimeoutPacketReader) PacketReader
type Reader ¶
type Reader interface { N.ExtendedReader TimeoutReader N.WithUpstreamReader N.ReaderWithUpstream }
func NewFallbackReader ¶ added in v0.2.4
func NewFallbackReader(timeoutReader TimeoutReader) Reader
func NewReader ¶
func NewReader(timeoutReader TimeoutReader) Reader
type SerialConn ¶ added in v0.2.18
type SerialConn struct { N.ExtendedConn // contains filtered or unexported fields }
func (*SerialConn) ReadBuffer ¶ added in v0.2.18
func (c *SerialConn) ReadBuffer(buffer *buf.Buffer) error
func (*SerialConn) Upstream ¶ added in v0.3.0
func (c *SerialConn) Upstream() any
type SerialPacketConn ¶ added in v0.2.18
type SerialPacketConn struct { N.NetPacketConn // contains filtered or unexported fields }
func (*SerialPacketConn) ReadPacket ¶ added in v0.2.18
func (*SerialPacketConn) Upstream ¶ added in v0.2.18
func (c *SerialPacketConn) Upstream() any
type TimeoutPacketReader ¶
type TimeoutPacketReader interface { N.NetPacketReader SetReadDeadline(t time.Time) error }
type WithoutReadDeadline ¶ added in v0.2.4
type WithoutReadDeadline interface {
NeedAdditionalReadDeadline() bool
}
Click to show internal directories.
Click to hide internal directories.