36 #include <libssh2_sftp.h>
38 #ifdef HAVE_WINSOCK2_H
41 #ifdef HAVE_SYS_SOCKET_H
42 #include <sys/socket.h>
44 #ifdef HAVE_NETINET_IN_H
45 #include <netinet/in.h>
47 #ifdef HAVE_SYS_SELECT_H
48 #include <sys/select.h>
53 #ifdef HAVE_ARPA_INET_H
54 #include <arpa/inet.h>
56 #ifdef HAVE_SYS_TIME_H
61 #include <arpa/inet.h>
62 #include <sys/types.h>
75 #define MAX_PARALLEL_SSH_CON 128
ZOO_DLL_EXPORT int ssh_get_cnt(maps *)
Get the number of opened SSH connections.
Definition: sshapi.c:250
ZOO_DLL_EXPORT bool runUpload(maps **)
Definition: sshapi.c:712
int index
Definition: sshapi.h:81
int sock_id
Definition: sshapi.h:80
ZOO_DLL_EXPORT bool ssh_close(maps *)
Close all the opened SSH connections.
Definition: sshapi.c:608
linked list of map pointer
Definition: main_conf_read.y:292
ZOO_DLL_EXPORT int ssh_fetch(maps *, const char *, const char *, int)
Download a file over an opened SSH connection.
Definition: sshapi.c:414
LIBSSH2_SFTP * sftp_session
Definition: sshapi.h:83
ZOO_DLL_EXPORT bool addToUploadQueue(maps **, maps *)
Definition: sshapi.c:620
LIBSSH2_SESSION * session
Definition: sshapi.h:82
ZOO_DLL_EXPORT bool ssh_close_session(maps *, SSHCON *)
Close an opened SSH connection.
Definition: sshapi.c:588
ZOO_DLL_EXPORT bool ssh_copy(maps *, const char *, const char *, int)
Upload a file over an opened SSH connection.
Definition: sshapi.c:323
ZOO_DLL_EXPORT SSHCON * ssh_connect(maps *)
Connect to a remote host using SSH protocol.
Definition: sshapi.c:77
ZOO_DLL_EXPORT int ssh_exec(maps *, const char *, int)
Execute a command over an opened SSH connection.
Definition: sshapi.c:509
static int nb_sessions
Definition: sshapi.h:77