Documentation ¶
Index ¶
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) InitializeReadWaiter(options N.ReadWaitOptions) (needCopy bool)
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) ReadPacket(buffer *buf.Buffer) (addr M.Socksaddr, err error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetDeadline(t time.Time) error
- func (c *Conn) SetHandler(handler N.UDPHandlerEx)
- func (c *Conn) SetReadDeadline(t time.Time) error
- func (c *Conn) SetWriteDeadline(t time.Time) error
- func (c *Conn) Upstream() any
- func (c *Conn) WaitReadPacket() (buffer *buf.Buffer, destination M.Socksaddr, err error)
- func (c *Conn) WritePacket(buffer *buf.Buffer, destination M.Socksaddr) error
- type Metrics
- type PrepareFunc
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) InitializeReadWaiter ¶
func (c *Conn) InitializeReadWaiter(options N.ReadWaitOptions) (needCopy bool)
func (*Conn) ReadPacket ¶
func (*Conn) RemoteAddr ¶
func (*Conn) SetHandler ¶
func (c *Conn) SetHandler(handler N.UDPHandlerEx)
func (*Conn) WaitReadPacket ¶
type PrepareFunc ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(handler N.UDPConnectionHandlerEx, prepare PrepareFunc, timeout time.Duration) *Service
Click to show internal directories.
Click to hide internal directories.