From ced05eb6dbbd9a20f0b96a454203a8d158157123 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Thu, 25 Oct 2018 18:38:32 +0200 Subject: socket: Undouble socket fds Signed-off-by: Sanne Raymaekers --- include/libssh/socket.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/libssh/socket.h b/include/libssh/socket.h index 8e1eac21..5c296e0d 100644 --- a/include/libssh/socket.h +++ b/include/libssh/socket.h @@ -34,7 +34,7 @@ ssh_socket ssh_socket_new(ssh_session session); void ssh_socket_reset(ssh_socket s); void ssh_socket_free(ssh_socket s); void ssh_socket_set_fd(ssh_socket s, socket_t fd); -socket_t ssh_socket_get_fd_in(ssh_socket s); +socket_t ssh_socket_get_fd(ssh_socket s); #ifndef _WIN32 int ssh_socket_unix(ssh_socket s, const char *path); void ssh_execute_command(const char *command, socket_t in, socket_t out); @@ -61,8 +61,7 @@ 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); -struct ssh_poll_handle_struct * ssh_socket_get_poll_handle_in(ssh_socket s); -struct ssh_poll_handle_struct * ssh_socket_get_poll_handle_out(ssh_socket s); +struct ssh_poll_handle_struct * ssh_socket_get_poll_handle(ssh_socket s); int ssh_socket_connect(ssh_socket s, const char *host, int port, const char *bind_addr); -- cgit v1.2.3