Documentation ¶
Index ¶
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 NewPacketConn ¶
func NewPacketConn(packet net.PacketConn, timeout time.Duration) *PacketConn
func (*PacketConn) Close ¶
func (c *PacketConn) Close() error
func (*PacketConn) ReadWithMetadata ¶
func (*PacketConn) WriteWithMetadata ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a socks5 server
func (*Server) AcceptPacket ¶
Click to show internal directories.
Click to hide internal directories.