1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-05 20:55:46 +03:00

Rodolphe Rocca fixes

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@135 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Aris Adamantiadis
2008-03-03 15:42:25 +00:00
parent 01470097c6
commit 21c547689a
2 changed files with 3 additions and 2 deletions

View File

@@ -187,6 +187,7 @@ int channel_request_exec(CHANNEL *channel, char *cmd);
int channel_request_sftp(CHANNEL *channel); int channel_request_sftp(CHANNEL *channel);
int channel_write(CHANNEL *channel,void *data,int len); int channel_write(CHANNEL *channel,void *data,int len);
int channel_send_eof(CHANNEL *channel); int channel_send_eof(CHANNEL *channel);
int channel_is_eof(CHANNEL *channel);
int channel_read(CHANNEL *channel, BUFFER *buffer,int bytes,int is_stderr); int channel_read(CHANNEL *channel, BUFFER *buffer,int bytes,int is_stderr);
int channel_poll(CHANNEL *channel, int is_stderr); int channel_poll(CHANNEL *channel, int is_stderr);
int channel_close(CHANNEL *channel); int channel_close(CHANNEL *channel);
@@ -251,6 +252,6 @@ void ssh_userauth_kbdint_setanswer(SSH_SESSION *session, unsigned int i, char *a
/* init.c */ /* init.c */
int ssh_finalize(); int ssh_finalize();
#ifdef __cplusplus #ifdef __cplusplus
} ; }
#endif #endif
#endif /* _LIBSSH_H */ #endif /* _LIBSSH_H */

View File

@@ -824,7 +824,7 @@ int channel_poll(CHANNEL *channel, int is_stderr){
} }
if(channel->remote_eof) if(channel->remote_eof)
return 1; return 1;
return buffer_get_len(buffer); return buffer_get_rest_len(buffer);
} }
/* nonblocking read on the specified channel. it will return <=len bytes of data read /* nonblocking read on the specified channel. it will return <=len bytes of data read