Rebex SFTP for .NET

ProxySocket.BeginReceive Method 

Begins to asynchronously receive data from a connected ProxySocket.

public IAsyncResult BeginReceive(
   byte[] buffer,
   int offset,
   int size,
   SocketFlags socketFlags,
   AsyncCallback callback,
   object state
);

Parameters

buffer
The storage location for the received data.
offset
The position in the buffer at which to store the received data.
size
The number of bytes to receive.
socketFlags
A bitwise combination of the SocketFlags values.
callback
The AsyncCallback delegate.
state
An object containing state information for this request.

Return Value

An IAsyncResult that references the asynchronous read.

Remarks

Prior to receiving data, the socket must be connected using either a call to Connect method or a call to Listen and Accept methods.

The BeginReceive method starts asynchronously reading data from a ProxySocket. You should create a callback method that implements the AsyncCallback delegate. This callback method should use the EndSend method to complete the asynchronous operation. See the .NET Framework SDK Reference for more information on asynchronous methods.

See Also

ProxySocket Class | Rebex.Net Namespace