edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Click or drag to resize

Socks5Context Class

Socks5Context holds information about making SOCKS5 connections.
Inheritance Hierarchy

Namespace:  EnterpriseDT.Util.Socks
Assembly:  edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntax
public class Socks5Context : SocksContext

The Socks5Context type exposes the following members.

Constructors
  NameDescription
Public methodSocks5Context
Default constructor.
Public methodSocks5Context(IPAddress)
Constructs a SOCKS5 context for the proxy with the given address.
Public methodSocks5Context(String)
Constructs a SOCKS5 context for the proxy with the given address.
Public methodSocks5Context(IPAddress, Int32)
Constructs a SOCKS5 context for the proxy with the given address.
Public methodSocks5Context(String, Int32)
Constructs a SOCKS5 context for the proxy with the given address and port.
Top
Properties
  NameDescription
Public propertyAuthMethods
Collection of authentication methods to be used.
Public propertyProxyAddress
Address to be used to connect to the proxy.
(Inherited from SocksContext.)
Public propertyProxyPort
Port to be used to connect to the proxy.
(Inherited from SocksContext.)
Public propertyPublicProxyAddress
Address that the proxy server presents to the "outside" network.
(Inherited from SocksContext.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string representation of this object.
(Overrides ObjectToString.)
Top
Remarks

At a minimum the following properties must be set:

PropertyDescription
ProxyAddressAddress to be used to connect to the proxy.
ProxyPortDefaults to 1080 - Port to be used to connect to the proxy.
UserNameUser-name to be used for validation on the proxy.
Authentication MethodsAt least one authentication method must be provided.

The SOCKS5 standard specifies three authentications methods. Currently, GSSAPI is not supported. If it is required please request it from EDT support.

Authentication MethodDescription
NullPerforms no authentication.
Username/PasswordUses a plain-text user-name/password combination.
GSSAPI(Currently not supported) Uses the Generic Security Services Application Program Interface (GSS-API) to communicate with system-level security services (SSPI on Windows) to authenticate the user.

See Also