Initializes a new instance of the ProxySocket class.
Namespace: Jscape.Util.ProxyAssembly: Jscape.Ftp (in Jscape.Ftp.dll) Version: 2.4.5.0
Syntax
C# |
---|
public ProxySocket( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, string proxyUsername, string proxyPassword ) |
Visual Basic |
---|
Public Sub New ( _ addressFamily As AddressFamily, _ socketType As SocketType, _ protocolType As ProtocolType, _ proxyUsername As String, _ proxyPassword As String _ ) |
Visual C++ |
---|
public: ProxySocket( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, String^ proxyUsername, String^ proxyPassword ) |
Parameters
- addressFamily
- Type: System.Net.Sockets..::..AddressFamily
One of the AddressFamily values.
- socketType
- Type: System.Net.Sockets..::..SocketType
One of the SocketType values.
- protocolType
- Type: System.Net.Sockets..::..ProtocolType
One of the ProtocolType values.
- proxyUsername
- Type: System..::..String
The username to use when authenticating with the proxy server.
- proxyPassword
- Type: System..::..String
The password to use when authenticating with the proxy server.
Exceptions
Exception | Condition |
---|---|
System.Net.Sockets..::..SocketException | The combination of addressFamily, socketType, and protocolType results in an invalid socket. |
System..::..ArgumentNullException | proxyUsername -or- proxyPassword is null. |