Hey,

I'm want to retrieve a interface by name. Using this code, I'm 100% sure that the interface exists, I used QNetworkInterface::allInterfaces() to check all the available interfaces. Still It can't find the right interface with the interfaceFromName method.
Any body an idea how to solve this ?
I'm running Qt 4.6 on Mac OS X.

Qt Code:
  1. try
  2. {
  3. iterface = QNetworkInterface::interfaceFromName("en0");
  4. }
  5. catch(exception)
  6. {
  7. return false;
  8. }
  9.  
  10. if(!iterface.isValid())
  11. return false;
To copy to clipboard, switch view to plain text mode