1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added a list of IP addresses to the juce demo system info page.

This commit is contained in:
jules 2014-08-12 08:38:03 +01:00
parent fcf010e74f
commit d16e5f4e80

View file

@ -49,6 +49,19 @@ static String getFileSystemRoots()
return rootList.joinIntoString (", ");
}
static String getIPAddressList()
{
Array<IPAddress> addresses;
IPAddress::findAllAddresses (addresses);
String addressList;
for (int i = 0; i < addresses.size(); ++i)
addressList << " " << addresses[i].toString() << newLine;
return addressList;
}
static const char* getDisplayOrientation()
{
switch (Desktop::getInstance().getCurrentOrientation())
@ -139,6 +152,7 @@ static String getAllSystemInfo()
.getBytesFreeOnVolume()) << newLine
<< newLine
<< getDisplayInfo() << newLine
<< "Network IP addresses: " << newLine << getIPAddressList() << newLine
<< "Network card MAC addresses: " << newLine << getMacAddressList() << newLine;
DBG (systemInfo);