See also the sftp specification at:
https://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.2.1
The size to read is in 4 bytes (32 bits).
I think that internally SCP and others do read in chunks, using 32
bits for sizes.
Stef
On Tuesday, 14 November 2017 12:08:06 CET Nikos Mavrogiannopoulos wrote:
> Hi,
Hi,
> While adding support of libssh to curl, I stumbled on the
> sftp_async_read_begin and sftp_async_read APIs. Both accept file
> size as uint32_t instead of size_t. In SCP or the other SFTP APIs,
> there is no