aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-06-17 13:18:55 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-06-17 13:18:55 +0200
commit2b68728552d125644a522e7548d02af9ffd71713 (patch)
tree5e63366af137bbe056f6fdb1cec06228e983f5d3 /include
parent42c7bc5a21225b41292cd0e0ea8822b10366940e (diff)
downloadlibssh-2b68728552d125644a522e7548d02af9ffd71713.tar.gz
libssh-2b68728552d125644a522e7548d02af9ffd71713.tar.xz
libssh-2b68728552d125644a522e7548d02af9ffd71713.zip
socket: Check if socket (non)blocking is working.
Diffstat (limited to 'include')
-rw-r--r--include/libssh/socket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libssh/socket.h b/include/libssh/socket.h
index e25bb0c9..285a02e3 100644
--- a/include/libssh/socket.h
+++ b/include/libssh/socket.h
@@ -55,8 +55,8 @@ 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);
-void ssh_socket_set_nonblocking(socket_t fd);
-void ssh_socket_set_blocking(socket_t fd);
+int ssh_socket_set_nonblocking(socket_t fd);
+int ssh_socket_set_blocking(socket_t fd);
void ssh_socket_set_callbacks(ssh_socket s, ssh_socket_callbacks callbacks);
int ssh_socket_pollcallback(struct ssh_poll_handle_struct *p, socket_t fd, int revents, void *v_s);