PadicoTM

Documentation

« back to PM2 home.
component: Control_SSH2- control channel over ssh tunnel.

This is deprecated, use Control_SysIO with a ssh-enabled SocketFactory instead. More...

Data Structures

struct  ssh2_openssh_s
 
struct  ssh2_control_status_s
 

Macros

#define OPENSSH_MIN_VERSION   5.4
 

Enumerations

enum  ssh2_control_state_e { SSH2_CONTROL_STATE_INIT = 0 , SSH2_CONTROL_STATE_CONNECTED , SSH2_CONTROL_STATE_DISCONNECTED }
 

Functions

static void ssh2_control_send_common (void *_status, padico_topo_node_t node, padico_control_msg_t msg)
 
static int ssh2_control_bootstrap_connect (void *_status, const char *hostname, padico_topo_uuid_t uuid)
 
static void * ssh2_control_instantiate (puk_instance_t, puk_context_t)
 
static void ssh2_control_destroy (void *)
 

Variables

static const struct padico_control_driver_s ssh2_control_driver
 
static const struct padico_bootstrap_driver_s ssh2_bootstrap_driver
 
static const struct puk_component_driver_s ssh2_control_component_driver
 

Detailed Description

This is deprecated, use Control_SysIO with a ssh-enabled SocketFactory instead.

Macro Definition Documentation

◆ OPENSSH_MIN_VERSION

#define OPENSSH_MIN_VERSION   5.4

Definition at line 61 of file control-ssh2.c.

Enumeration Type Documentation

◆ ssh2_control_state_e

Enumerator
SSH2_CONTROL_STATE_INIT 

connection is initializing

SSH2_CONTROL_STATE_CONNECTED 

connection is established

SSH2_CONTROL_STATE_DISCONNECTED 

connection has been disconnected

Definition at line 95 of file control-ssh2.c.

Function Documentation

◆ ssh2_control_bootstrap_connect()

◆ ssh2_control_destroy()

static void ssh2_control_destroy ( void *  _status)
static

◆ ssh2_control_instantiate()

◆ ssh2_control_send_common()

Variable Documentation

◆ ssh2_bootstrap_driver

const struct padico_bootstrap_driver_s ssh2_bootstrap_driver
static
Initial value:
=
{
.bootstrap_new = NULL,
.bootstrap_connect = &ssh2_control_bootstrap_connect
}
return NULL
Definition Shm.h:88
static int ssh2_control_bootstrap_connect(void *_status, const char *hostname, padico_topo_uuid_t uuid)

Definition at line 77 of file control-ssh2.c.

Referenced by control_ssh2_init().

◆ ssh2_control_component_driver

const struct puk_component_driver_s ssh2_control_component_driver
static
Initial value:
=
{
.instantiate = &ssh2_control_instantiate,
}
static void ssh2_control_destroy(void *)
static void * ssh2_control_instantiate(puk_instance_t, puk_context_t)

Definition at line 88 of file control-ssh2.c.

Referenced by control_ssh2_init().

◆ ssh2_control_driver

const struct padico_control_driver_s ssh2_control_driver
static
Initial value:
=
{
.send_common = &ssh2_control_send_common
}
static void ssh2_control_send_common(void *_status, padico_topo_node_t node, padico_control_msg_t msg)

Definition at line 67 of file control-ssh2.c.

Referenced by control_ssh2_init().