SocksProxy Class

SOCKS proxy client. Supported versions of the protocol are SOCKS4 and SOCKS5.
Inheritance Hierarchy

Namespace:  Aspose.Email.Clients
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public class SocksProxy : Proxy

The SocksProxy type exposes the following members.

Constructors
  NameDescription
Public methodSocksProxy(String, Int32)
Initializes a new instance of the SocksProxy class to connect to SOCKS4 server without authentication.
Public methodSocksProxy(String, Int32, SocksVersion)
Initializes a new instance of the SocksProxy class to connect to SOCKS4 or SOCKS5 server without authentication.
Public methodSocksProxy(String, Int32, String)
Initializes a new instance of the SocksProxy class to connect to SOCKS4 server without authentication.
Public methodSocksProxy(String, Int32, String, String)
Initializes a new instance of the SocksProxy class to connect to SOCKS5 server with defined username and password.
Properties
  NameDescription
Public propertyAddress
The domain name or IP address of the proxy server
(Inherited from Proxy.)
Public propertyPassword
Password for proxy authentication
(Inherited from Proxy.)
Public propertyPort
The port number for the proxy server
(Inherited from Proxy.)
Public propertySupportedAuthenticationMethods
The supported authentication methods to connect to SOCKS server
Public propertyUsername
Username for proxy authentication
(Inherited from Proxy.)
Public propertyVersion
Required SOCKS server version.
Methods
  NameDescription
Public methodDispose
Disposes this instance and requests that the underlying TCP connection be closed.
(Inherited from Proxy.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetStream
Returns configured network stream to transport data to the required host through the proxy server.
(Inherited from Proxy.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSetUpStream
Configures proxy-server to transport data to the target host.
(Overrides ProxySetUpStream(Stream, String, Int32).)
Public methodToString (Inherited from Object.)
See Also