Establishes a connection to a remote device.
Namespace:
Rebex.Net
Assembly:
Rebex.Tls (in Rebex.Tls.dll)
Syntax
Visual Basic |
---|
Public Function BeginConnect ( _ remoteEP As EndPoint, _ callback As AsyncCallback, _ state As Object _ ) As IAsyncResult |
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 containing state information for this request.
Return Value
An IAsyncResult that references the asynchronous connection.Remarks
The BeginConnect(EndPoint, AsyncCallback, Object) method establishes a network connection to a device
identified by the remoteEP parameter. Once the connection has been made,
you can send data to the remote device with the BeginSend(array<Byte>[]()[][], Int32, Int32, SocketFlags, AsyncCallback, Object) method,
or receive data from the remote device with the BeginReceive(array<Byte>[]()[][], Int32, Int32, SocketFlags, AsyncCallback, Object) method.