Initializes a new instance of the ProxySocket class.

Namespace: Jscape.Util.Proxy
Assembly: Jscape.Ssh (in Jscape.Ssh.dll) Version: 2.7.2.0

Syntax

C#
public ProxySocket(
	AddressFamily addressFamily,
	SocketType socketType,
	ProtocolType protocolType,
	string proxyUsername
)
Visual Basic
Public Sub New ( _
	addressFamily As AddressFamily, _
	socketType As SocketType, _
	protocolType As ProtocolType, _
	proxyUsername As String _
)
Visual C++
public:
ProxySocket(
	AddressFamily addressFamily, 
	SocketType socketType, 
	ProtocolType protocolType, 
	String^ proxyUsername
)

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.

Exceptions

ExceptionCondition
System.Net.Sockets..::..SocketExceptionThe combination of addressFamily, socketType, and protocolType results in an invalid socket.
System..::..ArgumentNullExceptionproxyUsername is null.

See Also