2 main applications, 1 eddy.c application, 2 pinetd.c application – Solvline Eddy DK Ver 2.20 User Manual

Page 62: 3 other applications, 2 main applications -2, 1 eddy.c application -2, 2 pinetd.c application -2, 3 other applications -2, Eddy.c application, Pinetd.c application

Advertising
background image

Chapter 7. Eddy Software

7-2

7.2 Main Applications

eddy.c and pinetd.c are introduced in this chapter. These two programs play the most important role in Eddy.

Other applications can be divided into applications that are run and monitored by pinetd.c and applications that are

manually run by users. Please see “4.1 Source Code” for simple functional description of each application.

7.2.1

eddy.c Application

Program run at first after Eddy is booted, this reads sb.config which is environment file saved at /flash.

When environment file is not present at /flash, it will use /etc/sb_default_config file to reset environment

configuration to factory setting.

This also copies environment configuration file of /flash to /etc directory so each application can refer to it.

This initializes network with configuration information of Sb_config file, and runs various daemon program.

7.2.2

Pinetd.c Application

Daemon program in the highest hierarchy of program run by Eddy.c, this checks model of Eddy and configures

system environment according to the characteristics of each model.

This reads Sb_config environment file to run and monitor each program.

This periodically monitors Eddy’s operating status and blinks readyLed so that user can check the status.

This also periodically monitors reset switch to read user’s request for reset of factory reset.

7.2.3

Other Applications

The following shows applications run according to the protocol of each serial port defined in Sb_config.

Tcp_server, tcp_client, com_redirect, tcp_broadcast, tcp_multiplex, udp (udp_server/client)

The following shows applications run to handle external network service regardless of serial ports.

Portview, detect, ddns_agent

The following shows application which user can manually run by connecting via telnet.

Def, upgrade, loopback,

Advertising