Delta Tau PMAC User Manual Page 14

  • Download
  • Add to my manuals
  • Print
  • Page
    / 22
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 13
Delta Tau Power PMAC EPICS Device Support Manual
8 February 2013
14
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
Filenames
sshDriver.h
sshDriver.cpp
Location
${TOP}/powerPMACApp/src
Methods
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.
Method
SSHDriver
Parameters
Host - Host name or IP of device.
Return
N/A
Description
Constructor for the driver class. Initializes internal variables.
Method
setUsername
Parameters
Username - The username for the SSH connection.
Return
SSHDriverStatus.
Description
Setter for the username.
Method
setPassword
Parameters
Password - The password for the SSH connection.
Return
SSHDriverStatus.
Description
Setter for the password. If this method is not called then
authentication using keys is attempted when connecting.
Method
connectSSH
Parameters
None.
Return
SSHDriverStatus.
Description
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.
Page view 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 20 21 22

Comments to this Manuals

No comments