Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
step2.cpp File Reference
#include <websocketpp/config/asio_no_tls_client.hpp>
#include <websocketpp/client.hpp>
#include <iostream>
#include <string>
Include dependency graph for step2.cpp:

Go to the source code of this file.

Typedefs

typedef websocketpp::client< websocketpp::config::asio_clientclient
 

Functions

int main ()
 

Typedef Documentation

◆ client

Function Documentation

◆ main()

int main ( void )

Definition at line 39 of file step2.cpp.

39 {
40 bool done = false;
41 std::string input;
42
43 while (!done) {
44 std::cout << "Enter Command: ";
45 std::getline(std::cin, input);
46
47 if (input == "quit") {
48 done = true;
49 } else if (input == "help") {
50 std::cout
51 << "\nCommand List:\n"
52 << "help: Display this help text\n"
53 << "quit: Exit the program\n"
54 << std::endl;
55 } else {
56 std::cout << "Unrecognized Command" << std::endl;
57 }
58 }
59
60 return 0;
61}