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

Go to the source code of this file.

Classes

class  websocket_endpoint
 

Typedefs

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

Functions

int main ()
 

Typedef Documentation

◆ client

Function Documentation

◆ main()

int main ( void )

Definition at line 58 of file step3.cpp.

58 {
59 bool done = false;
60 std::string input;
61 websocket_endpoint endpoint;
62
63 while (!done) {
64 std::cout << "Enter Command: ";
65 std::getline(std::cin, input);
66
67 if (input == "quit") {
68 done = true;
69 } else if (input == "help") {
70 std::cout
71 << "\nCommand List:\n"
72 << "help: Display this help text\n"
73 << "quit: Exit the program\n"
74 << std::endl;
75 } else {
76 std::cout << "Unrecognized Command" << std::endl;
77 }
78 }
79
80 return 0;
81}