Sends data asynchronously to a specific remote host.
[Visual Basic]
Overridable Public Function BeginSendTo( _
ByVal buffer As Byte(), _
ByVal offset As Integer, _
ByVal size As Integer, _
ByVal socketFlags As SocketFlags, _
ByVal remoteEP As EndPoint, _
ByVal callback As AsyncCallback, _
ByVal state As Object _
) As IAsyncResult
An IAsyncResult that references the asynchronous send.
The BeginSendTo method starts asynchronously sending data through a socket. You must create a callback method that implements the AsyncCallback delegate. This callback method should use the EndSendTo method to complete sending data.
Exception Type | Condition |
---|---|
ArgumentException | buffer is a null reference (Nothing in Visual Basic). -or- remoteEP is a null reference (Nothing in Visual Basic). |
SocketException | An operating system error occurs while accessing the VirtualSocket. |
ArgumentOutOfRangeException | The specified offset or size exceeds the size of buffer. |
ObjectDisposedException | The VirtualSocket has been closed. |
VirtualSocket Class | VirtualSocket Members | Org.Mentalis.Security.Ssl Namespace