aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-03-22 11:49:57 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2011-03-22 11:49:57 +0100
commitdff4e4e6d3a56123b00df48fdcd7a6de0a275aef (patch)
tree35e1831a4ad969223bdf342bb629fed13393865e /include
parent79b74bdf64e55f407b448fda267589f793ddc19e (diff)
downloadlibssh-dff4e4e6d3a56123b00df48fdcd7a6de0a275aef.tar.gz
libssh-dff4e4e6d3a56123b00df48fdcd7a6de0a275aef.tar.xz
libssh-dff4e4e6d3a56123b00df48fdcd7a6de0a275aef.zip
Implement ssh_blocking_flush()
Based on code from Jan Willamowius
Diffstat (limited to 'include')
-rw-r--r--include/libssh/libssh.h1
-rw-r--r--include/libssh/socket.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 504aac92..268d4292 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -324,6 +324,7 @@ enum ssh_scp_request_types {
SSH_SCP_REQUEST_WARNING
};
+LIBSSH_API int ssh_blocking_flush(ssh_session session, int timeout);
LIBSSH_API ssh_channel ssh_channel_accept_x11(ssh_channel channel, int timeout_ms);
LIBSSH_API int ssh_channel_change_pty_size(ssh_channel channel,int cols,int rows);
LIBSSH_API int ssh_channel_close(ssh_channel channel);
diff --git a/include/libssh/socket.h b/include/libssh/socket.h
index 625dc1c3..527f52ed 100644
--- a/include/libssh/socket.h
+++ b/include/libssh/socket.h
@@ -53,6 +53,7 @@ void ssh_socket_set_write_wontblock(ssh_socket s);
void ssh_socket_set_read_wontblock(ssh_socket s);
void ssh_socket_set_except(ssh_socket s);
int ssh_socket_get_status(ssh_socket s);
+int ssh_socket_buffered_write_bytes(ssh_socket s);
int ssh_socket_data_available(ssh_socket s);
int ssh_socket_data_writable(ssh_socket s);