Re: sftp_async_read_begin + uint32_t

2017-11-14 Thread Stef Bon
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

Re: sftp_async_read_begin + uint32_t

2017-11-14 Thread Andreas Schneider
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