Establishes a connection to a remote device.
[Visual Basic]Overloads Public Sub Connect( _
ByVal remoteEP As System.Net.EndPoint _
)
[C#]
public void Connect(
EndPoint remoteEP
);
Parameters
- remoteEP
- An EndPoint that represents the remote device.
Exceptions
| Exception Type | Condition |
|---|---|
| System.ArgumentNullException | The remoteEP parameter is a null reference (Nothing in Visual Basic). |
| System.Net.Sockets.SocketException | An operating system error occurs while accessing the Socket. |
| System.ObjectDisposedException | The Socket has been closed. |
| Org.Mentalis.Network.ProxySocket.ProxyException | An error occured while talking to the proxy server. |
See Also
ProxySocket Class | ProxySocket Members | Org.Mentalis.Network.ProxySocket Namespace | ProxySocket.Connect Overload List
Establishes a connection to a remote device.
[Visual Basic]
Overloads Public Sub Connect( _
ByVal remoteEP As System.Net.EndPoint _
)
[C#]
public void Connect(
EndPoint remoteEP
);
Parameters
- remoteEP
- An EndPoint that represents the remote device.
Exceptions
| Exception Type | Condition |
|---|---|
| System.ArgumentNullException | The remoteEP parameter is a null reference (Nothing in Visual Basic). |
| System.Net.Sockets.SocketException | An operating system error occurs while accessing the Socket. |
| System.ObjectDisposedException | The Socket has been closed. |
| Org.Mentalis.Network.ProxySocket.ProxyException | An error occured while talking to the proxy server. |
See Also
ProxySocket Class | ProxySocket Members | Org.Mentalis.Network.ProxySocket Namespace | ProxySocket.Connect Overload List