ProxySocket Constructor (AddressFamily, SocketType, ProtocolType, String, String)

Mentalis.org ProxySocket

Mentalis.org ProxySocket Documentation

ProxySocket Constructor (AddressFamily, SocketType, ProtocolType, String, String)

Initializes a new instance of the ProxySocket class.

[Visual Basic]Overloads Public Sub New( _
   ByVal addressFamily As System.Net.Sockets.AddressFamily, _
   ByVal socketType As System.Net.Sockets.SocketType, _
   ByVal protocolType As System.Net.Sockets.ProtocolType, _
   ByVal proxyUsername As String, _
   ByVal proxyPassword As String _
)
[C#]
public ProxySocket(
   AddressFamily addressFamily,
   SocketType socketType,
   ProtocolType protocolType,
   string proxyUsername,
   string proxyPassword
);

Parameters

addressFamily
One of the AddressFamily values.
socketType
One of the SocketType values.
protocolType
One of the ProtocolType values.
proxyUsername
The username to use when authenticating with the proxy server.
proxyPassword
The password to use when authenticating with the proxy server.

Exceptions

Exception Type Condition
System.Net.Sockets.SocketException The combination of addressFamily, socketType, and protocolType results in an invalid socket.
System.ArgumentNullException proxyUsername -or- proxyPassword is null.

See Also

ProxySocket Class | ProxySocket Members | Org.Mentalis.Network.ProxySocket Namespace | ProxySocket Constructor Overload List