DDFA includes the following configuration files, executable
files, and daemon:
- /etc/ddfa/dp
The Dedicated Port (dp) configuration
file is an ASCII file which contains the mapping
information for each physical terminal server port and its associated
pty device file.
- /etc/ddfa/pcf
The Port Configuration File (pcf)
is an ASCII file which contains default port configuration parameters
used by ocd processes. The pcf is referenced
inside the dp file.
- /usr/sbin/dpp
The Dedicated Port Parser (dpp)
is an executable file which parses the /etc/ddfa/dp
file and spawns an Outbound Connection Daemon
(ocd)
for each outgoing and incoming connection specified in the dp
file The dpp can be run manually from the
Shell, or automatically each time the system is booted.
- /usr/sbin/ocd
The Outbound Connection Daemon (ocd)
manages the connection and data transfer to each server port. Normally,
ocds are spawned by the dpp.
However, an ocd can also be run from the
Shell with all the parameters from the dp
file specified on the command line.
- /usr/sbin/ocdebug
The Outbound Connection Daemon in debug
mode (ocdebug)
is a special debugging version of ocd and
performs the same tasks as ocd. In addition,
the ocdebug daemon logs debug messages to
the log file /var/adm/ocd<pid> for troubleshooting
purposes. (The term '<pid>' refers to ocd's process identification
number
.) <
After the system administrator runs the dpp
program on the dp configuration file, an
ocd daemon
is created for each configured port for which an outgoing connection
is desired. When the daemon is spawned, it takes a pty from the
pty pool in the /dev directory (or its subdirectories).
The daemon then creates a device file with the same major and minor
number as the pty slave, and gives it the name listed in the
dp file. The new device file is known as
the "pseudonym"
.
User applications should use this pseudonym to access the
server port when calling standard HP-UX intrinsics (such as open,
close, ioctl, read
and write).
The daemon listens on the pty until an application does an open
call using the pseudonym. The daemon manages the connection to the
server port until it is closed. All of this activity is transparent
when you use a terminal or printer on the DTC or other terminal
server.