mirror of
https://github.com/u0u0/Cocos2d-Lua-Community.git
synced 2026-05-22 13:26:19 +08:00
31 lines
709 B
C++
31 lines
709 B
C++
#include "platform/CCNetwork.h"
|
|
#include "base/CCConsole.h"
|
|
|
|
NS_CC_BEGIN
|
|
|
|
bool Network::isLocalWiFiAvailable(void)
|
|
{
|
|
CCLOG("Network::isLocalWiFiAvailable() - not support this platform.");
|
|
return true;
|
|
}
|
|
|
|
bool Network::isInternetConnectionAvailable(void)
|
|
{
|
|
CCLOG("Network::isInternetConnectionAvailable() - not support this platform.");
|
|
return true;
|
|
}
|
|
|
|
bool Network::isHostNameReachable(const char* hostName)
|
|
{
|
|
CCLOG("Network::isHostNameReachable() - not support this platform.");
|
|
return true;
|
|
}
|
|
|
|
int Network::getInternetConnectionStatus(void)
|
|
{
|
|
CCLOG("Network::getInternetConnectionStatus() - not support this platform.");
|
|
return kCCNetworkStatusReachableViaWiFi;
|
|
}
|
|
|
|
NS_CC_END
|