Rebex SFTP for .NET

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

Sends the specified amount of data to a connected ProxySocket starting at the indicated location in the data and using the supplied flags.

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

Parameters

buffer
The data to be sent.
offset
The position in the data buffer to begin sending data.
size
The number of bytes to send.
socketFlags
A bitwise combination of the SocketFlags values.

Return Value

The number of bytes sent.

Remarks

Prior to sending 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.Send Overload List