10 #ifndef SIMPLESSHCLIENT_H
11 #define SIMPLESSHCLIENT_H
16 #include <libssh2_sftp.h>
21 #include <sys/socket.h>
22 #include <netinet/in.h>
24 #include <arpa/inet.h>
28 #include <sys/types.h>
50 static int libssh2_init_rc;
54 LIBSSH2_SESSION *session;
55 LIBSSH2_SFTP *sftp_session;
62 const char *hostip,
const char *remotepath);
88 int sftp_copy_file(
const char *localfile,
const char* destpath);
93 int exec_cmd(
const char *command);
95 static int waitsocket(
int socket_fd, LIBSSH2_SESSION *session);
98 #endif // SIMPLESSHCLIENT_H