diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-08-10 22:59:35 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-08-10 22:59:35 +0200 |
commit | 7e9f0803c52bba4149c0eb1aa52ef3933c95f657 (patch) | |
tree | 52bf3eb900fc5b5b4f6d7b39486d3ab636c16fe5 /include | |
parent | f989452b3e7f473760bca1161c87e519310cb0c3 (diff) | |
download | libssh-7e9f0803c52bba4149c0eb1aa52ef3933c95f657.tar.gz libssh-7e9f0803c52bba4149c0eb1aa52ef3933c95f657.tar.xz libssh-7e9f0803c52bba4149c0eb1aa52ef3933c95f657.zip |
Latest scp code
The sample is now able to scp a file
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/priv.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 4d65652..1c8628e 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -342,11 +342,20 @@ struct ssh_keys_struct { const char *publickey; }; +enum ssh_scp_states { + SSH_SCP_NEW, //Data structure just created + SSH_SCP_WRITE_INITED, //Gave our intention to write + SSH_SCP_WRITE_WRITING,//File was opened and currently writing + SSH_SCP_READ_INITED, //Gave our intention to read + SSH_SCP_READ_READING, //File is opened and reading + SSH_SCP_ERROR //Something bad happened +}; struct ssh_scp_struct { ssh_session session; int mode; ssh_channel channel; char *location; + enum ssh_scp_states state; size_t filelen; size_t processed; }; |