Metrologic Optimus S Programming Manual page 135

"c" programming guide
Table of Contents

Advertisement

GetNetParameter
Purpose
To retrieve one networking configuration item from the system.
Syntax
void GetNetParameter (void *return-value, int index);
Example
int DhcpEnable;
unsigned char IP[4];
..............................
DhcpEnable = 1;
SetNetParameter ((void*) &DhcpEnable, P_DHCP_ENABLE);
if (NetInit() < 0) {
}
do {
} while (!ns.IPReady);
GetNetParameter ((void*) &IP, P_LOCAL_IP);
printf ("IP = %d.%d.%d.%d", IP[0], IP[1], IP[2], IP[3]);
This routine gets one network configuration item from the system. Make sure
Description
the size of return-value is suitable to the configuration type.
Return
None
See Also
GetNetConfig, SetNetParameter
Chapter 3 Terminal Specific Function Library
printf ("Initialization Fail");
..................................
OSTimeDly (10);
GetNetStatus (&ns);
129

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents