Metrologic Optimus S Programming Manual page 126

"c" programming guide
Table of Contents

Advertisement

120
"C" Programming Guide For Optimus S/R
GetNetConfig
Purpose
To retrieve the whole networking configurations from the system.
Syntax
void GetNetConfig (struct NETCONFIG *config);
Example
struct NETCONFIG nc;
struct NETSTATUS ns;
..............................
GetNetConfig (&nc);
nc.DhcpEnable = 1;
SetNetConfig (&nc);
if (NetInit() < 0) {
printf ("Initialization Fail");
..................................
}
do {
OSTimeDly (10);
GetNetStatus (&ns);
} while (!ns.IPReady);
Description
This routine gets the whole network configurations from the system. It is useful
when the application wants to change more than one part of the configuration
parameters.
The application should reserve enough stack or define a static variable to store
the structure of NETCONFIG.
It is recommended to use GetNetParameter() to get the parameters for the
stability and compatibility in the future.
None
Return
See Also
GetNetParameter, SetNetConfig

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents