-
-
Notifications
You must be signed in to change notification settings - Fork 5
Network Interface API
Nenkai edited this page Jul 14, 2024
·
2 revisions
< MNetworkInterface Reference Class >
if (pdistd::MNetworkInterface::isUp())
{
// ...
}
var mac = pdistd::MNetworkInterface::getMacAddress();
var ip = pdistd::MNetworkInterface::getIpAddress();
var nat_info = pdistd::MNetworkInterface::getNatInfo();
/*
nat_info contains:
- "address" - (String)
- "nat" - (Int)
- "stun" - (Int)
- "upnp" - (Int)
*/
var proxy = pdistd::MNetworkInterface::getProxy();
/*
Array with elements:
[0] Enabled (Bool)
[1] Server (String)
[2] Port (Int)
*/
var wireless = pdistd::MNetworkInterface::isDeviceWireless();