Establishes a connection to a remote device.

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

Syntax

C#
public void Connect(
	EndPoint remoteEP
)
Visual Basic
Public Sub Connect ( _
	remoteEP As EndPoint _
)
Visual C++
public:
void Connect(
	EndPoint^ remoteEP
)

Parameters

remoteEP
Type: System.Net..::..EndPoint
An EndPoint that represents the remote device.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe remoteEP parameter is a null reference (Nothing in Visual Basic).
System.Net.Sockets..::..SocketExceptionAn operating system error occurs while accessing the Socket.
System..::..ObjectDisposedExceptionThe Socket has been closed.
Jscape.Util.Proxy..::..ProxyExceptionAn error occured while talking to the proxy server.

See Also