SocksProxy

SocksProxy(string, int)

初始化SocksProxy无需身份验证即可连接到 SOCKS4 服务器的类。

public SocksProxy(string address, int port)
范围类型描述
addressString代理的域名或IP地址
portInt32代理的端口号

也可以看看


SocksProxy(string, int, SocksVersion)

初始化SocksProxy无需身份验证即可连接到 SOCKS4 或 SOCKS5 服务器的类。

public SocksProxy(string address, int port, SocksVersion version)
范围类型描述
addressString代理的域名或IP地址
portInt32代理的端口号
versionSocksVersion所需的 SOCKS 服务器版本。

也可以看看


SocksProxy(string, int, string)

初始化SocksProxy无需身份验证即可连接到 SOCKS4 服务器的类。

public SocksProxy(string address, int port, string userID)
范围类型描述
addressString代理的域名或IP地址
portInt32代理的端口号
userIDStringSocks4 标识协议的用户 ID (RFC 1413)

也可以看看


SocksProxy(string, int, string, string)

初始化SocksProxy使用定义的用户名和密码连接到 SOCKS5 服务器的类。

public SocksProxy(string address, int port, string username, string password)
范围类型描述
addressString代理的域名或IP地址
portInt32代理的端口号
usernameString用于身份验证的用户名
passwordString验证密码

也可以看看