Hi,
I know that Ethernet Card 's Mac Address can be changed.
Now I have a question:
Through the function QNetworkInterface::hardwareAddress () we can obtain the native Mac Address or the Mac Address modified?
Thanks
Gennaro
Hi,
I know that Ethernet Card 's Mac Address can be changed.
Now I have a question:
Through the function QNetworkInterface::hardwareAddress () we can obtain the native Mac Address or the Mac Address modified?
Thanks
Gennaro
Hi,
I know that Ethernet Card 's Mac Address can be changed.
Now I have a question:
Through the function QNetworkInterface::hardwareAddress () we can obtain the native Mac Address or the Mac Address modified?
Thanks
Gennaro
before i launch mysql connecto from external server i check network ...
&& it return forever the actual status....
Qt Code:
/* if external network is up? */ static inline bool NetworkEnable() { bool validip = false; int o = -1; o++; if (!oneip.contains("127.")) { bool actual = hop.isValid(); if (actual) { validip = true; } } } return validip; }To copy to clipboard, switch view to plain text mode
You can't rely on the Qt API on this one.
You better use the platform API:
Windows:
http://www.codeproject.com/internet/NetCnfgVersion2.asp
http://www.codeproject.com/internet/getmac.asp
Linux:
http://kasperd.net/~kasperd/comp.os....lopment.faq#IP
See paragraph 29.
Mac:
Search http://developer.apple.com
Regards
Bookmarks