Rebex SFTP for .NET

ProxySocket.Receive Method (Byte[], Int32, Int32, SocketFlags)

Receives the specified amount of data from a connected ProxySocket into a specific location of the receive buffer and using the supplied flags.

public int Receive(
   byte[] buffer,
   int offset,
   int size,
   SocketFlags socketFlags
);

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.

Return Value

The number of bytes received.

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.

See Also

ProxySocket Class | Rebex.Net Namespace | ProxySocket.Receive Overload List