Eddy DK Programmer Guide
126
cgiFormInteger
("N_TELNET
", &value, cfg.system.telnet_server);
if (value == 1)
{
listPutf(list, "
n_telnet_di
", "");
listPutf(list, "
n_telnet_en
", "selected");
}
else
{
listPutf(list,
"n_telnet_di
", "selected");
listPutf(list, "
n_telnet_en
", "");
}
cgiFormInteger("
N_WEB
", &value, cfg.system.web_server);
if (value == 1)
{
listPutf(list, "
n_web_di
", "");
listPutf(list,
"n_web_en
", "selected");
}
else
{
listPutf(list, "
n_web_di
", "selected");
listPutf(list, "
n_web_en
", "");
}
The following shows processing part of setagent.c to save user-modified configuration value.
[Source abstract]
value2 = cgiFormStringNoNewlines("
N_IP
", buff, 16);
if (value2 != cgiFormEmpty) convert_address (buff, cfg.system.ip);
value2 = cgiFormStringNoNewlines("
N_MASK
", buff, 16);
if (value2 != cgiFormEmpty) convert_address (buff, cfg.system.mask);
value2 = cgiFormStringNoNewlines("
N_GW
", buff, 16);
if (value2 != cgiFormEmpty) convert_address (buff, cfg.system.gateway);
value2 = cgiFormStringNoNewlines("
N_DNS
", buff, 16);
if (value2 != cgiFormEmpty) convert_address (buff, cfg.system.dns);
cgiFormInteger("
N_TELNET
", &value, cfg.system.telnet_server);
cfg.system.telnet_server = value;
cgiFormInteger("
N_WEB
", &value, cfg.system.web_server);
cfg.system.web_server = value;
Содержание Eddy DK
Страница 1: ...1 Eddy DK Programmer Guide Ver 2 5 1 1 2011 02 15...
Страница 10: ...Eddy DK Programmer Guide 10 2 3 Eddy CPU v2 1 v2 5...
Страница 36: ...Eddy DK Programmer Guide 36 2 4 4 External Device Interface Description...
Страница 47: ...Eddy DK Programmer Guide 47 Eddy S4M v2 1 Eddy S4M v2 5...