Skip to content

Commit

Permalink
Change code to c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred2g committed Apr 9, 2024
1 parent 9c756c0 commit 6c117e1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions samples/secure_tunneling/secure_tunnel/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using namespace Aws::Crt;
using namespace Aws::Iotsecuretunneling;
using namespace Aws::Crt::Io;
using namespace std::chrono_literals;
//using namespace std::chrono_literals;

void logMessage(std::shared_ptr<Message> message)
{
Expand Down Expand Up @@ -352,7 +352,8 @@ int main(int argc, char *argv[])
*/
while (keepRunning)
{
std::this_thread::sleep_for(2000ms);
//std::this_thread::sleep_for(2000ms);
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
if (localProxyMode == AWS_SECURE_TUNNELING_SOURCE_MODE)
{
uint16_t messageCount = static_cast<uint16_t>(cmdData.input_count);
Expand Down Expand Up @@ -389,7 +390,8 @@ int main(int argc, char *argv[])
connectionId = 2;
secureTunnel->SendConnectionStart(m_serviceId.value(), connectionId);

std::this_thread::sleep_for(2000ms);
//std::this_thread::sleep_for(2000ms);
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
}
else
{
Expand All @@ -399,7 +401,8 @@ int main(int argc, char *argv[])
}
}

std::this_thread::sleep_for(3000ms);
//std::this_thread::sleep_for(3000ms);
std::this_thread::sleep_for(std::chrono::milliseconds(3000));

fprintf(stdout, "Closing Connection\n");
// Set the Secure Tunnel Client to desire a stopped state
Expand Down

0 comments on commit 6c117e1

Please sign in to comment.