NCL Composer  0.1.5
 All Classes Functions Variables Pages
SimpleSSHClient Class Reference
Collaboration diagram for SimpleSSHClient:

Public Member Functions

 SimpleSSHClient (const char *username, const char *password, const char *hostip, const char *remotepath)
 Configures the machine properties.
 
int doConnect ()
 Connect to a remote machine.
 
void doDisconnect ()
 Disconnect from the current connected remote machine.
 
int sftp_copy_file (const char *localfile, const char *destpath)
 Copy the file from localpath to the remotepath.
 
int exec_cmd (const char *command)
 Executes a command in the remote machine.
 

Static Public Member Functions

static int init ()
 Initialize the libssh2 library. More...
 
static void exit ()
 Free all data of libssh2.
 
static int waitsocket (int socket_fd, LIBSSH2_SESSION *session)
 

Detailed Description

Definition at line 42 of file SimpleSSHClient.h.

Member Function Documentation

int SimpleSSHClient::init ( )
static

Initialize the libssh2 library.

This function must be called only one time (possible in the beginning of your program).

Definition at line 57 of file SimpleSSHClient.cpp.

Here is the caller graph for this function:


The documentation for this class was generated from the following files: