Documentation ¶
Index ¶
- func NewPacketConn(ctx context.Context, conn N.PacketConn, timeout time.Duration) (context.Context, N.PacketConn)
- type Instance
- type PacketConn
- type TimeoutPacketConn
- func (c *TimeoutPacketConn) Close() error
- func (c *TimeoutPacketConn) ReadPacket(buffer *buf.Buffer) (destination M.Socksaddr, err error)
- func (c *TimeoutPacketConn) SetTimeout(timeout time.Duration)
- func (c *TimeoutPacketConn) Timeout() time.Duration
- func (c *TimeoutPacketConn) Upstream() any
- func (c *TimeoutPacketConn) WritePacket(buffer *buf.Buffer, destination M.Socksaddr) error
- type TimerPacketConn
- func (c *TimerPacketConn) Close() error
- func (c *TimerPacketConn) ReadPacket(buffer *buf.Buffer) (destination M.Socksaddr, err error)
- func (c *TimerPacketConn) SetTimeout(timeout time.Duration)
- func (c *TimerPacketConn) Timeout() time.Duration
- func (c *TimerPacketConn) Upstream() any
- func (c *TimerPacketConn) WritePacket(buffer *buf.Buffer, destination M.Socksaddr) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPacketConn ¶
func NewPacketConn(ctx context.Context, conn N.PacketConn, timeout time.Duration) (context.Context, N.PacketConn)
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) CloseWithError ¶ added in v0.2.3
func (*Instance) SetTimeout ¶
type PacketConn ¶
type PacketConn interface { N.PacketConn Timeout() time.Duration SetTimeout(timeout time.Duration) }
func NewTimeoutPacketConn ¶
func NewTimeoutPacketConn(ctx context.Context, conn N.PacketConn, timeout time.Duration) (context.Context, PacketConn)
type TimeoutPacketConn ¶
type TimeoutPacketConn struct { N.PacketConn // contains filtered or unexported fields }
func (*TimeoutPacketConn) Close ¶
func (c *TimeoutPacketConn) Close() error
func (*TimeoutPacketConn) ReadPacket ¶
func (*TimeoutPacketConn) SetTimeout ¶
func (c *TimeoutPacketConn) SetTimeout(timeout time.Duration)
func (*TimeoutPacketConn) Timeout ¶
func (c *TimeoutPacketConn) Timeout() time.Duration
func (*TimeoutPacketConn) Upstream ¶
func (c *TimeoutPacketConn) Upstream() any
func (*TimeoutPacketConn) WritePacket ¶
type TimerPacketConn ¶
type TimerPacketConn struct { N.PacketConn // contains filtered or unexported fields }
func (*TimerPacketConn) Close ¶
func (c *TimerPacketConn) Close() error
func (*TimerPacketConn) ReadPacket ¶
func (*TimerPacketConn) SetTimeout ¶
func (c *TimerPacketConn) SetTimeout(timeout time.Duration)
func (*TimerPacketConn) Timeout ¶
func (c *TimerPacketConn) Timeout() time.Duration
func (*TimerPacketConn) Upstream ¶
func (c *TimerPacketConn) Upstream() any
func (*TimerPacketConn) WritePacket ¶
Click to show internal directories.
Click to hide internal directories.