Documentation ¶
Index ¶
- type Handler
- type NATConn
- func (c *NATConn) Close() error
- func (c *NATConn) LocalAddr() net.Addr
- func (c *NATConn) Read(p []byte) (n int, err error)
- func (c *NATConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (c *NATConn) ReadPacket() (*buffer.PacketBuffer, error)
- func (c *NATConn) RecvChan() chan *buffer.PacketBuffer
- func (c *NATConn) RemoteAddr() net.Addr
- func (c *NATConn) SetDeadline(t time.Time) error
- func (c *NATConn) SetReadDeadline(t time.Time) error
- func (c *NATConn) SetWriteDeadline(t time.Time) error
- func (c *NATConn) Upstream() any
- func (c *NATConn) Write(b []byte) (n int, err error)
- func (c *NATConn) WritePacket(packet *buffer.PacketBuffer) error
- func (c *NATConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
- type Options
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NATConn ¶
type NATConn struct {
// contains filtered or unexported fields
}
func (*NATConn) ReadPacket ¶
func (c *NATConn) ReadPacket() (*buffer.PacketBuffer, error)
func (*NATConn) RecvChan ¶
func (c *NATConn) RecvChan() chan *buffer.PacketBuffer
func (*NATConn) RemoteAddr ¶
func (*NATConn) WritePacket ¶
func (c *NATConn) WritePacket(packet *buffer.PacketBuffer) error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) HandlePacket ¶
Click to show internal directories.
Click to hide internal directories.