TlsSocket.BeginReceive Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9313)
BeginReceive(Byte[], Int32, Int32, SocketFlags, AsyncCallback, Object)
Ends a pending asynchronous read.
Declaration
public IAsyncResult BeginReceive(byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state)
Parameters
| Type | Name | Description | 
|---|---|---|
| Byte[] | buffer | The storage location for the received data.  | 
    
| Int32 | offset | The position in the buffer at which to store the received data.  | 
    
| Int32 | size | The number of bytes to receive.  | 
    
| SocketFlags | socketFlags | A bitwise combination of the SocketFlags values.  | 
    
| AsyncCallback | callback | The AsyncCallback delegate.  | 
    
| Object | state | An object containing state information for this request.  | 
    
Returns
| Type | Description | 
|---|---|
| IAsyncResult | An IAsyncResult that references the asynchronous send.  | 
    
Remarks
The EndReceive method completes a request to accept a connection that was started with the BeginReceive(Byte[], Int32, Int32, SocketFlags, AsyncCallback, Object) method.