Chapter 3 Terminal Specific Function Library
129
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) {
printf ("Initialization Fail");
..................................
}
do {
OSTimeDly (10);
GetNetStatus (&ns);
} while (!ns.IPReady);
GetNetParameter ((void*) &IP, P_LOCAL_IP);
printf ("IP = %d.%d.%d.%d", IP[0], IP[1], IP[2], IP[3]);
Description
This routine gets one network configuration item from the system. Make sure
the size of return-value is suitable to the configuration type.
Return
None
See Also
GetNetConfig, SetNetParameter
Summary of Contents for Optimus R
Page 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Page 6: ......
Page 8: ...2 C Programming Guide For Optimus S R...
Page 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Page 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Page 24: ...18 C Programming Guide For Optimus S R...
Page 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...