Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
kodi::network Namespace Reference

Functions

bool ATTR_DLL_LOCAL WakeOnLan (const std::string &mac)
 Send WakeOnLan magic packet.
 
std::string ATTR_DLL_LOCAL GetIPAddress ()
 To the current own ip address as a string.
 
std::string ATTR_DLL_LOCAL GetHostname ()
 Return our hostname.
 
std::string ATTR_DLL_LOCAL GetUserAgent ()
 Returns Kodi's HTTP UserAgent string.
 
bool ATTR_DLL_LOCAL IsLocalHost (const std::string &hostname)
 Check given name or ip address corresponds to localhost.
 
bool ATTR_DLL_LOCAL IsHostOnLAN (const std::string &hostname, bool offLineCheck=false)
 Checks whether the specified path refers to a local network.
 
std::string ATTR_DLL_LOCAL URLEncode (const std::string &url)
 URL encodes the given string.
 
bool ATTR_DLL_LOCAL DNSLookup (const std::string &hostName, std::string &ipAddress)
 Lookup URL in DNS cache.