Documentation ¶
Index ¶
- Variables
- func MetadataTypeToByte(typ protocol.MetadataType) byte
- func NetworkToByte(network string) byte
- func NewDialer(nextDialer proxy.Dialer, header protocol.Header) (proxy.Dialer, error)
- func ParseMetadataType(t byte) protocol.MetadataType
- func ParseNetwork(n byte) string
- func SealUDP(metadata Metadata, dst []byte, data []byte) []byte
- type Conn
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Read(b []byte) (n int, err error)
- func (c *Conn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (c *Conn) ReadReqHeader() (err error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) Write(b []byte) (n int, err error)
- func (c *Conn) WriteTo(p []byte, addr net.Addr) (n int, err error)
- type Dialer
- type Metadata
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CRLF = []byte{13, 10} FailAuthErr = fmt.Errorf("incorrect password") )
View Source
var (
ErrInvalidMetadata = errors.Errorf("invalid metadata")
)
Functions ¶
func MetadataTypeToByte ¶
func MetadataTypeToByte(typ protocol.MetadataType) byte
func NetworkToByte ¶
func ParseMetadataType ¶
func ParseMetadataType(t byte) protocol.MetadataType
func ParseNetwork ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.