1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

psftp now works as part of the PuTTY suite

[originally from svn r940]
This commit is contained in:
Simon Tatham
2001-02-24 16:08:56 +00:00
parent 094dd30d95
commit 39cf689fd6
6 changed files with 508 additions and 70 deletions

17
sftp.h
View File

@ -55,6 +55,18 @@
#define SFTP_PROTO_VERSION 3
/*
* External references. The sftp client module sftp.c expects to be
* able to get at these functions.
*
* sftp_recvdata must never return less than len. It either blocks
* until len is available, or it returns failure.
*
* Both functions return 1 on success, 0 on failure.
*/
int sftp_senddata(char *data, int len);
int sftp_recvdata(char *data, int len);
struct fxp_attrs {
unsigned long flags;
uint64 size;
@ -114,6 +126,11 @@ void fxp_close(struct fxp_handle *handle);
*/
int fxp_read(struct fxp_handle *handle, char *buffer, uint64 offset, int len);
/*
* Write to a file. Returns 0 on error, 1 on OK.
*/
int fxp_write(struct fxp_handle *handle, char *buffer, uint64 offset, int len);
/*
* Read from a directory.
*/