{
std::cout << "Usage devicediscoveryclient <0|1>" << std::endl;
std::cout << "connectivityType: Default IP" << std::endl;
- std::cout << "connectivityType 0: IPv4" << std::endl;
- std::cout << "connectivityType 1: IPv6 (Currently not supported !)" << std::endl;
+ std::cout << "connectivityType 0: IP" << std::endl;
}
//Callback after device information is received
void receivedPlatformInfo(const OCRepresentation& rep)
{
if(optionSelected == 0)
{
- std::cout << "Using IPv4."<< std::endl;
- connectivityType = CT_IP_USE_V4;
- }
- else if(optionSelected == 1)
- {
- std::cout << "IPv6 is currently not supported."<< std::endl;
- printUsage();
- return -1;
- //TODO: printUsage to be removed when IPv6 is available.
- //connectivityType = CT_ADAPTER_IP;
+ std::cout << "Using IP."<< std::endl;
+ connectivityType = CT_ADAPTER_IP;
}
else
{
{
std::cout << "Usage: fridgeclient <0|1>" <<std::endl;
std::cout << "connectivityType: Default IP" << std::endl;
- std::cout << "connectivityType 0: IPv4" << std::endl;
- std::cout << "connectivityType 1: IPv6 (Currently Not Supported)" << std::endl;
+ std::cout << "connectivityType 0: IP" << std::endl;
}
class ClientFridge
{
{
if(optionSelected == 0)
{
- std::cout << "Using IPv4."<< std::endl;
- connectivityType = CT_IP_USE_V4;
- }
- else if(optionSelected == 1)
- {
- std::cout << "IPv6 is currently not supported."<< std::endl;
- printUsage();
- return -1;
- //TODO: printUsage to be removed when IPv6 is available.
- //connectivityType = CT_IP_USE_V6;
+ std::cout << "Using IP."<< std::endl;
+ connectivityType = CT_ADAPTER_IP;
}
else
{
{
std::cout<<"Usage: garageclient <0|1> \n";
std::cout<<"ConnectivityType: Default IP\n";
- std::cout<<"ConnectivityType 0: IPv4 \n";
- std::cout<<"ConnectivityType 1: IPv6 \n";
+ std::cout<<"ConnectivityType 0: IP \n";
}
class Garage
{
if(optionSelected == 0)
{
- std::cout << "Using IPv4."<< std::endl;
- connectivityType = CT_IP_USE_V4;
- }
- else if(optionSelected == 1)
- {
- std::cout << "IPv6 is currently not supported."<< std::endl;
- printUsage();
- return -1;
- //TODO: printUsage to be removed when IPv6 is available.
- //connectivityType = CT_IP_USE_V6;
+ std::cout << "Using IP."<< std::endl;
+ connectivityType = CT_ADAPTER_IP;
}
else
{
{
std::cout<<"Usage: groupclient <0|1>\n";
std::cout<<"ConnectivityType: Default \n";
- std::cout<<"ConnectivityType 0: IPv4\n";
- std::cout<<"ConnectivityType 1: IPv6\n";
+ std::cout<<"ConnectivityType 0: IP\n";
}
void foundResource(std::shared_ptr< OCResource > resource)
{
{
if(optionSelected == 0)
{
- std::cout << "Using IPv4."<< std::endl;
- connectivityType = CT_IP_USE_V4;
- }
- else if(optionSelected == 1)
- {
- std::cout << "IPv6 is currently not supported."<< std::endl;
- printUsage();
- return -1;
- //TODO: printUsage to be removed when IPv6 is available.
- //connectivityType = CT_IP_USE_V6;
+ std::cout << "Using IP."<< std::endl;
+ connectivityType = CT_ADAPTER_IP;
}
else
{
<< std::endl;
std::cout << "-t 6 : Discover Resources and Initiate Multicast Presence with two Filters"
<< std::endl;
- std::cout<<"ConnectivityType: Default IPv4" << std::endl;
- std::cout << "-c 0 : Send message with IPv4" << std::endl;
- std::cout << "-c 1 : Send message with IPv6 (Currently Not Supported)" << std::endl;
+ std::cout<<"ConnectivityType: Default IP" << std::endl;
+ std::cout << "-c 0 : Send message with IP" << std::endl;
}
// Callback to presence
{
if(optionSelected == 0)
{
- std::cout << "Using IPv4."<< std::endl;
- connectivityType = CT_IP_USE_V4;
- }
- else if(optionSelected == 1)
- {
- std::cout << "IPv6 is currently not supported."<< std::endl;
- printUsage();
- return -1;
- //TODO: printUsage to be removed when IPv6 is available.
- //connectivityType = CT_IP_USE_V6;
+ std::cout << "Using IP."<< std::endl;
+ connectivityType = CT_ADAPTER_IP;
}
else
{
{
std::cout << "Usage roomclient <0|1>" << std::endl;
std::cout<<"connectivityType: Default" << std::endl;
- std::cout << "connectivityType 0: IPv4" << std::endl;
- std::cout << "connectivityType 0: IPv46 (Currently Not Supported)" << std::endl;
+ std::cout << "connectivityType 0: IP" << std::endl;
}
// Forward declaration
void putRoomRepresentation(std::shared_ptr<OCResource> resource);
{
if(optionSelected == 0)
{
- std::cout << "Using IPv4."<< std::endl;
- connectivityType = CT_IP_USE_V4;
- }
- else if(optionSelected == 1)
- {
- std::cout << "IPv6 is currently not supported."<< std::endl;
- printUsage();
- return -1;
- //TODO: printUsage to be removed when IPv6 is available.
- //connectivityType = CT_IP_USE_V6;
+ std::cout << "Using IP."<< std::endl;
+ connectivityType = CT_ADAPTER_IP;
}
else
{
std::cout << " ObserveType : 1 - Observe" << std::endl;
std::cout << " ObserveType : 2 - ObserveAll" << std::endl;
std::cout << " ConnectivityType: Default IP" << std::endl;
- std::cout << " ConnectivityType : 0 - IPv4"<< std::endl;
- std::cout << " ConnectivityType : 0 - IPv6 (Current Not Supported )"<< std::endl;
+ std::cout << " ConnectivityType : 0 - IP"<< std::endl;
}
int main(int argc, char* argv[]) {
{
if(optionSelected == 0)
{
- std::cout << "Using IPv4."<< std::endl;
- connectivityType = CT_IP_USE_V4;
- }
- else if(optionSelected == 1)
- {
- std::cout << "IPv6 is currently not supported."<< std::endl;
- PrintUsage();
- return -1;
- //TODO: printUsage to be removed when IPv6 is available.
- //connectivityType = CT_IP_USE_V6;
+ std::cout << "Using IP."<< std::endl;
+ connectivityType = CT_ADAPTER_IP;
}
else
{
{
std::cout<< " Usage simpleclientserver <0|1>" << std::endl;
std::cout<< " ConnectivityType: Default IP" << std::endl;
- std::cout << " ConnectivityType : 0 - IPv4" << std::endl;
- std::cout << " ConnectivityType : 1 - IPv6 (Currently Not Supported)" << std::endl;
+ std::cout << " ConnectivityType : 0 - IP" << std::endl;
}
class ClientWorker
{
if(optionSelected == 0)
{
- std::cout << "Using IPv4."<< std::endl;
- connectivityType = CT_IP_USE_V4;
- }
- else if(optionSelected == 1)
- {
- std::cout << "IPv6 is currently not supported."<< std::endl;
- printUsage();
- return -1;
- //TODO: printUsage to be removed when IPv6 is available.
- //connectivityType = CT_IP_USE_V6;
+ std::cout << "Using IP."<< std::endl;
+ connectivityType = CT_ADAPTER_IP;
}
else
{