Begins an asynchronous request for a connection to a network device.
Namespace: Jscape.Util.ProxyAssembly: Jscape.Ssh (in Jscape.Ssh.dll) Version: 2.7.2.0
Syntax
C# |
---|
public IAsyncResult BeginConnect(
EndPoint remoteEP,
AsyncCallback callback,
Object state
) |
Visual Basic |
---|
Public Function BeginConnect ( _
remoteEP As EndPoint, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult |
Visual C++ |
---|
public:
IAsyncResult^ BeginConnect(
EndPoint^ remoteEP,
AsyncCallback^ callback,
Object^ state
) |
Parameters
- remoteEP
- Type: System.Net..::..EndPoint
An EndPoint that represents the remote device.
- callback
- Type: System..::..AsyncCallback
The AsyncCallback delegate.
- state
- Type: System..::..Object
An object that contains state information for this request.
Return Value
An IAsyncResult that references the asynchronous connection.
Exceptions
Exception | Condition |
---|
System..::..ArgumentNullException | The remoteEP parameter is a null reference (Nothing in Visual Basic). |
System.Net.Sockets..::..SocketException | An operating system error occurs while creating the Socket. |
System..::..ObjectDisposedException | The Socket has been closed. |
See Also