Delta Tau Power PMAC EPICS Device Support Manual
8 February 2013
7 Development of the Device Support Code
This section describes in more detail the main files/classes involved in the Power
PMAC EPICS module. These files can be located in the source directory of the
Power PMAC application.
7.1 SSH Driver Class
sshDriver.h
sshDriver.cpp
SSHDriver
setUsername
setPassword
connectSSH
setBlocking
flush
write
read
disconnectSSH
~SSHDriver
The SSH driver class provides a wrapper around the libssh2 library and presents a
simple interface for establishing connections to the Power PMAC and write/read/flush
operations.
Host - Host name or IP of device.
Constructor for the driver class. Initializes internal variables.
Username - The username for the SSH connection.
Password - The password for the SSH connection.
Setter for the password. If this method is not called then
authentication using keys is attempted when connecting.
Attempt to create a connection and authorize the username with the
password or by keys. Once a connection has been established a
dumb terminal is created.
Comments to this Manuals