diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-06-17 13:18:55 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-06-17 13:18:55 +0200 |
commit | 2b68728552d125644a522e7548d02af9ffd71713 (patch) | |
tree | 5e63366af137bbe056f6fdb1cec06228e983f5d3 /include | |
parent | 42c7bc5a21225b41292cd0e0ea8822b10366940e (diff) | |
download | libssh-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libssh/socket.h b/include/libssh/socket.h index e25bb0c..285a02e 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); |