PDA

View Full Version : reading network configuration



Tomasz
9th August 2010, 19:00
Hello!

I need to read network configuration like IP, netmask, DNS in Linux. How can I do it using QT?

thank in advance
best regards
Tomasz

Talei
9th August 2010, 19:10
You could try to read appropriate config files and then parse them to acquire these informations, or use qprocess to run ifconfig and retrieve output of ifconfig.
I doubt that QT offers specific function like retrieve network configuration, but I can be wrong on these because Qt positively surprised me with that kind of tasks in the past.