24 #include "libssh/callbacks.h"
31 int ssh_socket_init(
void);
36 void ssh_socket_set_fd(
ssh_socket s, socket_t fd);
39 int ssh_socket_unix(
ssh_socket s,
const char *path);
40 void ssh_execute_command(
const char *command, socket_t in, socket_t out);
42 int ssh_socket_connect_proxycommand(
ssh_socket s,
const char *command);
45 int ssh_socket_write(
ssh_socket s,
const void *buffer, uint32_t len);
47 int ssh_socket_fd_isset(
ssh_socket s, fd_set *set);
48 void ssh_socket_fd_set(
ssh_socket s, fd_set *set, socket_t *max_fd);
49 void ssh_socket_set_fd_in(
ssh_socket s, socket_t fd);
50 void ssh_socket_set_fd_out(
ssh_socket s, socket_t fd);
51 int ssh_socket_nonblocking_flush(
ssh_socket s);
52 void ssh_socket_set_write_wontblock(
ssh_socket s);
53 void ssh_socket_set_read_wontblock(
ssh_socket s);
57 int ssh_socket_buffered_write_bytes(
ssh_socket s);
60 int ssh_socket_set_nonblocking(socket_t fd);
61 int ssh_socket_set_blocking(socket_t fd);
70 const char *bind_addr);
int ssh_socket_pollcallback(struct ssh_poll_handle_struct *p, socket_t fd, int revents, void *v_s)
SSH poll callback. This callback will be used when an event caught on the socket.
Definition: socket.c:246
void ssh_socket_cleanup(void)
Cleanup the socket system.
Definition: socket.c:139
Definition: session.h:127
Definition: callbacks.h:383