Go to the documentation of this file.
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 bool addToUploadQueue(maps **, maps *)
Definition: sshapi.c:621
int sock_id
Definition: sshapi.h:79
int index
Definition: sshapi.h:80
ZOO_DLL_EXPORT bool ssh_copy(maps *, const char *, const char *, int)
Upload a file over an opened SSH connection.
Definition: sshapi.c:324
static int nb_sessions
Definition: sshapi.h:76
ZOO_DLL_EXPORT bool runUpload(maps **)
Definition: sshapi.c:713
ZOO_DLL_EXPORT int ssh_get_cnt(maps *)
Get the number of opened SSH connections.
Definition: sshapi.c:251
ZOO_DLL_EXPORT bool ssh_close(maps *)
Close all the opened SSH connections.
Definition: sshapi.c:609
LIBSSH2_SESSION * session
Definition: sshapi.h:81
linked list of map pointer
Definition: service.h:678
ZOO_DLL_EXPORT SSHCON * ssh_connect(maps *)
Connect to a remote host using SSH protocol.
Definition: sshapi.c:77
LIBSSH2_SFTP * sftp_session
Definition: sshapi.h:82
ZOO_DLL_EXPORT int ssh_fetch(maps *, const char *, const char *, int)
Download a file over an opened SSH connection.
Definition: sshapi.c:415
ZOO_DLL_EXPORT bool ssh_close_session(maps *, SSHCON *)
Close an opened SSH connection.
Definition: sshapi.c:589
#define ZOO_DLL_EXPORT
Definition: service.h:34
ZOO_DLL_EXPORT int ssh_exec(maps *, const char *, int)
Execute a command over an opened SSH connection.
Definition: sshapi.c:510