C# Class socks5.Socks5Client.Socks

Exibir arquivo Open project: ThrDev/Socks5 Class Usage Examples

Public Methods

Method Description
DoSocksAuth ( Socks5Client p, string Username, string Password ) : bool
Greet ( Client client, IList supportedAuthTypes = null ) : AuthTypes
SendLogin ( Client cli, string Username, string Password ) : int
SendRequest ( Client cli, SocksEncryption enc, string ipOrDomain, int port ) : socks5.Socks.SocksError

Method Details

DoSocksAuth() public static method

public static DoSocksAuth ( Socks5Client p, string Username, string Password ) : bool
p Socks5Client
Username string
Password string
return bool

Greet() public static method

public static Greet ( Client client, IList supportedAuthTypes = null ) : AuthTypes
client socks5.TCP.Client
supportedAuthTypes IList
return AuthTypes

SendLogin() public static method

public static SendLogin ( Client cli, string Username, string Password ) : int
cli socks5.TCP.Client
Username string
Password string
return int

SendRequest() public static method

public static SendRequest ( Client cli, SocksEncryption enc, string ipOrDomain, int port ) : socks5.Socks.SocksError
cli socks5.TCP.Client
enc socks5.Encryption.SocksEncryption
ipOrDomain string
port int
return socks5.Socks.SocksError