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:
parent
fcf010e74f
commit
d16e5f4e80
1 changed files with 14 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue