Documentation ¶
Index ¶
- Constants
- Variables
- type Socks5
- func (socks5 *Socks5) AuthenticateClient(clientConnection net.Conn) (bool, error)
- func (socks5 *Socks5) Bind(clientConnection net.Conn) error
- func (socks5 *Socks5) Connect(clientConnection net.Conn) error
- func (socks5 *Socks5) Handle(clientConnection net.Conn) error
- func (socks5 *Socks5) SetAuthenticationMethod(authenticationMethod Types.AuthenticationMethod) error
- func (socks5 *Socks5) SetDial(dialFunc Types.DialFunc)
- func (socks5 *Socks5) SetLoggingMethod(loggingMethod Types.LoggingMethod) error
- func (socks5 *Socks5) SetOutboundFilter(filter Types.IOFilter) error
- func (socks5 *Socks5) UDPAssociate(clientConnection net.Conn) error
- func (socks5 *Socks5) UsernamePasswordAuthentication(clientConnection net.Conn) (bool, error)
Constants ¶
Variables ¶
View Source
var ( // SOCKS requests connection responses UsernamePasswordSupported = []byte{SocksV5, UsernamePassword} NoAuthRequiredSupported = []byte{SocksV5, NoAuthRequired} NoSupportedMethods = []byte{SocksV5, 0xFF} AuthenticationSucceded = []byte{BasicNegotiation, 0x00} AuthenticationFailed = []byte{SocksV5, 0xFF} )
Functions ¶
This section is empty.
Types ¶
type Socks5 ¶
type Socks5 struct { AuthenticationMethod Types.AuthenticationMethod LoggingMethod Types.LoggingMethod OutboundFilter Types.IOFilter Dial Types.DialFunc }
func NewSocks5 ¶
func NewSocks5(authenticationMethod Types.AuthenticationMethod, loggingMethod Types.LoggingMethod, outboundFilter Types.IOFilter) *Socks5
func (*Socks5) AuthenticateClient ¶
func (*Socks5) SetAuthenticationMethod ¶
func (socks5 *Socks5) SetAuthenticationMethod(authenticationMethod Types.AuthenticationMethod) error
func (*Socks5) SetLoggingMethod ¶
func (socks5 *Socks5) SetLoggingMethod(loggingMethod Types.LoggingMethod) error
func (*Socks5) SetOutboundFilter ¶
Click to show internal directories.
Click to hide internal directories.