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:
@@ -187,6 +187,7 @@ int channel_request_exec(CHANNEL *channel, char *cmd);
|
||||
int channel_request_sftp(CHANNEL *channel);
|
||||
int channel_write(CHANNEL *channel,void *data,int len);
|
||||
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_poll(CHANNEL *channel, int is_stderr);
|
||||
int channel_close(CHANNEL *channel);
|
||||
@@ -251,6 +252,6 @@ void ssh_userauth_kbdint_setanswer(SSH_SESSION *session, unsigned int i, char *a
|
||||
/* init.c */
|
||||
int ssh_finalize();
|
||||
#ifdef __cplusplus
|
||||
} ;
|
||||
}
|
||||
#endif
|
||||
#endif /* _LIBSSH_H */
|
||||
|
@@ -824,7 +824,7 @@ int channel_poll(CHANNEL *channel, int is_stderr){
|
||||
}
|
||||
if(channel->remote_eof)
|
||||
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
|
||||
|
Reference in New Issue
Block a user