Documentation ¶
Index ¶
- Constants
- func NewServer(ctx context.Context, underlay tunnel.Server) (tunnel.Server, error)
- type Config
- type Conn
- type PacketConn
- func (c *PacketConn) Close() error
- func (c *PacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (c *PacketConn) ReadWithMetadata(p []byte) (int, *tunnel.Metadata, error)
- func (c *PacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
- func (c *PacketConn) WriteWithMetadata(p []byte, m *tunnel.Metadata) (int, error)
- type Server
- type Tunnel
Constants ¶
View Source
const ( Connect tunnel.Command = 1 Associate tunnel.Command = 3 )
View Source
const (
MaxPacketSize = 1024 * 8
)
View Source
const Name = "SOCKS"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PacketConn ¶
type PacketConn struct { net.PacketConn // contains filtered or unexported fields }
func (*PacketConn) Close ¶
func (c *PacketConn) Close() error
func (*PacketConn) ReadWithMetadata ¶
func (*PacketConn) WriteWithMetadata ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AcceptPacket ¶
Click to show internal directories.
Click to hide internal directories.