Documentation
¶
Index ¶
- Constants
- func NewDialer(dialer common.Dialer, options Options) (common.Dialer, error)
- type AssociatePacketConn
- func (c *AssociatePacketConn) Close() error
- func (c *AssociatePacketConn) Read(p []byte) (n int, err error)
- func (c *AssociatePacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (c *AssociatePacketConn) RemoteAddr() net.Addr
- func (c *AssociatePacketConn) SetReadBuffer(n int) error
- func (c *AssociatePacketConn) SetWriteBuffer(n int) error
- func (c *AssociatePacketConn) SyscallConn() (syscall.RawConn, error)
- func (c *AssociatePacketConn) Write(p []byte) (n int, err error)
- func (c *AssociatePacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
- type AuthRequest
- type AuthResponse
- type CommandRequest
- type CommandResponse
- type Dialer
- type Options
- type UsernamePasswordAuthRequest
- type UsernamePasswordAuthResponse
Constants ¶
View Source
const ( Version byte = 5 AuthTypeNotRequired byte = 0x00 AuthTypeGSSAPI byte = 0x01 AuthTypeUsernamePassword byte = 0x02 AuthTypeNoAcceptedMethods byte = 0xFF UsernamePasswordStatusSuccess byte = 0x00 UsernamePasswordStatusFailure byte = 0x01 CommandConnect byte = 0x01 CommandBind byte = 0x02 CommandUDPAssociate byte = 0x03 ReplyCodeSuccess byte = 0 ReplyCodeFailure byte = 1 ReplyCodeNotAllowed byte = 2 ReplyCodeNetworkUnreachable byte = 3 ReplyCodeHostUnreachable byte = 4 ReplyCodeConnectionRefused byte = 5 ReplyCodeTTLExpired byte = 6 ReplyCodeUnsupported byte = 7 ReplyCodeAddressTypeUnsupported byte = 8 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssociatePacketConn ¶
func (*AssociatePacketConn) Close ¶
func (c *AssociatePacketConn) Close() error
func (*AssociatePacketConn) RemoteAddr ¶
func (c *AssociatePacketConn) RemoteAddr() net.Addr
func (*AssociatePacketConn) SetReadBuffer ¶
func (c *AssociatePacketConn) SetReadBuffer(n int) error
QUIC
func (*AssociatePacketConn) SetWriteBuffer ¶
func (c *AssociatePacketConn) SetWriteBuffer(n int) error
QUIC
func (*AssociatePacketConn) SyscallConn ¶
func (c *AssociatePacketConn) SyscallConn() (syscall.RawConn, error)
QUIC
type AuthRequest ¶
type AuthRequest struct {
Methods []byte
}
func (*AuthRequest) WriteRequest ¶
func (r *AuthRequest) WriteRequest(writer io.Writer) error
type AuthResponse ¶
type AuthResponse struct {
Method byte
}
func (*AuthResponse) ReadResponse ¶
func (r *AuthResponse) ReadResponse(reader io.Reader) error
type CommandRequest ¶
func (*CommandRequest) WriteRequest ¶
func (r *CommandRequest) WriteRequest(writer io.Writer) error
type CommandResponse ¶
func (*CommandResponse) ReadResponse ¶
func (r *CommandResponse) ReadResponse(reader io.Reader) error
type Dialer ¶
type Dialer struct {
// contains filtered or unexported fields
}
func (*Dialer) DialContext ¶
func (*Dialer) ListenPacket ¶
type UsernamePasswordAuthRequest ¶
func (*UsernamePasswordAuthRequest) WriteRequest ¶
func (r *UsernamePasswordAuthRequest) WriteRequest(writer io.Writer) error
type UsernamePasswordAuthResponse ¶
type UsernamePasswordAuthResponse struct {
Status byte
}
func (*UsernamePasswordAuthResponse) ReadResponse ¶
func (r *UsernamePasswordAuthResponse) ReadResponse(reader io.Reader) error
Click to show internal directories.
Click to hide internal directories.