Documentation ¶
Index ¶
- Constants
- type Config
- type Conn
- type PacketConn
- func (c *PacketConn) Close() error
- func (c *PacketConn) ReadFrom(p []byte) (int, net.Addr, error)
- func (c *PacketConn) ReadWithMetadata(p []byte) (int, *tunnel.Metadata, error)
- func (c *PacketConn) WriteTo(p []byte, addr net.Addr) (int, error)
- func (c *PacketConn) WriteWithMetadata(p []byte, m *tunnel.Metadata) (int, error)
- type Server
- type Tunnel
Constants ¶
View Source
const MaxPacketSize = 1024 * 8
View Source
const Name = "DOKODEMO"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PacketConn ¶
type PacketConn struct { net.PacketConn // contains filtered or unexported fields }
PacketConn receive packet info from the packet dispatcher
func (*PacketConn) Close ¶
func (c *PacketConn) Close() error
func (*PacketConn) ReadWithMetadata ¶
func (*PacketConn) WriteWithMetadata ¶
type Server ¶
func (*Server) AcceptPacket ¶
Click to show internal directories.
Click to hide internal directories.