diff options
Diffstat (limited to 'include/libssh/socket.h')
-rw-r--r-- | include/libssh/socket.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/libssh/socket.h b/include/libssh/socket.h index c0bc7d52..9a2ee20d 100644 --- a/include/libssh/socket.h +++ b/include/libssh/socket.h @@ -33,9 +33,11 @@ int ssh_socket_init(void); ssh_socket ssh_socket_new(ssh_session session); void ssh_socket_free(ssh_socket s); void ssh_socket_set_fd(ssh_socket s, socket_t fd); -socket_t ssh_socket_get_fd(ssh_socket s); +socket_t ssh_socket_get_fd_in(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); +int ssh_socket_connect_proxycommand(ssh_socket s, const char *command); #endif void ssh_socket_close(ssh_socket s); int ssh_socket_read(ssh_socket s, void *buffer, int len); @@ -43,6 +45,8 @@ int ssh_socket_write(ssh_socket s,const void *buffer, int len); int ssh_socket_is_open(ssh_socket s); int ssh_socket_fd_isset(ssh_socket s, fd_set *set); void ssh_socket_fd_set(ssh_socket s, fd_set *set, int *fd_max); +void ssh_socket_set_fd_in(ssh_socket s, socket_t fd); +void ssh_socket_set_fd_out(ssh_socket s, socket_t fd); int ssh_socket_completeread(ssh_socket s, void *buffer, uint32_t len); int ssh_socket_completewrite(ssh_socket s, const void *buffer, uint32_t len); int ssh_socket_wait_for_data(ssh_socket s, ssh_session session, uint32_t len); @@ -58,8 +62,9 @@ int ssh_socket_data_writable(ssh_socket s); void ssh_socket_set_callbacks(ssh_socket s, ssh_socket_callbacks callbacks); int ssh_socket_pollcallback(struct ssh_poll_handle_struct *p, int fd, int revents, void *s); -void ssh_socket_register_pollcallback(ssh_socket s, struct ssh_poll_handle_struct *p); -struct ssh_poll_handle_struct * ssh_socket_get_poll_handle(ssh_socket 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); + int ssh_socket_connect(ssh_socket s, const char *host, int port, const char *bind_addr); #endif /* SOCKET_H_ */ |