ZOO-Project: sshapi.h File Reference
ZOO-Project
sshapi.h File Reference
#include <libssh2.h>
#include <libssh2_sftp.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <ctype.h>
#include <time.h>
#include "service.h"

Go to the source code of this file.

Data Structures

struct  SSHCON
 

Macros

#define MAX_PARALLEL_SSH_CON   128
 

Functions

ZOO_DLL_EXPORT SSHCONssh_connect (maps *)
 Connect to a remote host using SSH protocol. More...
 
ZOO_DLL_EXPORT bool ssh_copy (maps *, const char *, const char *, int)
 Upload a file over an opened SSH connection. More...
 
ZOO_DLL_EXPORT int ssh_get_cnt (maps *)
 Get the number of opened SSH connections. More...
 
ZOO_DLL_EXPORT int ssh_fetch (maps *, const char *, const char *, int)
 Download a file over an opened SSH connection. More...
 
ZOO_DLL_EXPORT int ssh_exec (maps *, const char *, int)
 Execute a command over an opened SSH connection. More...
 
ZOO_DLL_EXPORT bool ssh_close_session (maps *, SSHCON *)
 Close an opened SSH connection. More...
 
ZOO_DLL_EXPORT bool ssh_close (maps *)
 Close all the opened SSH connections. More...
 
ZOO_DLL_EXPORT bool addToUploadQueue (maps **, maps *)
 
ZOO_DLL_EXPORT bool runUpload (maps **)
 

Variables

static int nb_s

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png