Begins to asynchronously receive data from a specified network device.
[Visual Basic]
Overridable Public Function BeginReceiveFrom( _
ByVal buffer As Byte(), _
ByVal offset As Integer, _
ByVal size As Integer, _
ByVal socketFlags As SocketFlags, _
ByRef remoteEP As EndPoint, _
ByVal callback As AsyncCallback, _
ByVal state As Object _
) As IAsyncResult
An IAsyncResult that references the asynchronous read.
Exception Type | Condition |
---|---|
ArgumentException | buffer is a null reference (Nothing in Visual Basic). -or- remoteEP is a null reference (Nothing in Visual Basic). -or- offset is outside the bounds of buffer. |
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