
SetIP method
Attempts to set local IP and netmask for the adapter.
Syntax
- C++
void SetIP(char *ip, char *netmask);
The SetIP(ip,netmask) syntax has these parts:
The SetIP(ip,netmask) syntax has these parts:
ip | NULL terminated data buffer with new IP address. |
netmask | NULL terminated data buffer with new IP address. |
Remarks
SetIP will attempt to set new IP/Netmask values for the interface. It is assumed that process have root/Administrator privileges when calling this method. On Windwos, this method will call 'netsh' command, and on UNIXes it will call 'ifconfig' for setting up parameters.Platforms
WindowsMac OSX
Linux
BSD