diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-06-16 23:55:12 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-06-16 23:55:12 +0000 |
commit | 8ce42c279ec470bc600fcf9dd3450b450f6c32f0 (patch) | |
tree | 227054b8513168f0c36be7c8b6c4a486d0b72020 /include/libssh | |
parent | 1fce8c72e79a69b0478b2f3bf84d058ebaf5211c (diff) | |
download | libssh-8ce42c279ec470bc600fcf9dd3450b450f6c32f0.tar.gz libssh-8ce42c279ec470bc600fcf9dd3450b450f6c32f0.tar.xz libssh-8ce42c279ec470bc600fcf9dd3450b450f6c32f0.zip |
displaced the data_to_* into socket
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@171 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include/libssh')
-rw-r--r-- | include/libssh/priv.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index db8fe955..203d14e0 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -307,10 +307,6 @@ struct ssh_session { int auth_service_asked; /* socket status */ - int data_to_read; /* reading now on socket will - not block */ - int data_to_write; - int data_except; int blocking; // functions should block STRING *banner; /* that's the issue banner from @@ -336,9 +332,6 @@ struct ssh_session { CRYPTO *current_crypto; CRYPTO *next_crypto; /* next_crypto is going to be used after a SSH2_MSG_NEWKEYS */ - int channel_bytes_toread; /* left number of bytes - in the channel buffers - */ CHANNEL *channels; /* linked list of channels */ int maxchannel; int exec_channel_opened; /* version 1 only. more @@ -442,7 +435,12 @@ int ssh_socket_wait_for_data(struct socket *s, SSH_SESSION *session,int len); int ssh_socket_nonblocking_flush(struct socket *s); int ssh_socket_blocking_flush(struct socket *s); int ssh_socket_poll(struct socket *s, int *write, int *except); - +void ssh_socket_set_towrite(struct socket *s); +void ssh_socket_set_toread(struct socket *s); +void ssh_socket_set_except(struct socket *s); +int ssh_socket_get_status(struct socket *s); +int ssh_socket_data_available(struct socket *s); +int ssh_socket_data_writable(struct socket *s); /* session.c */ void ssh_cleanup(SSH_SESSION *session); |