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

Go to the source code of this file.

Classes

class  perftest
 

Typedefs

typedef websocketpp::client< websocketpp::config::asio_clientclient
 
typedef websocketpp::config::asio_tls_client::message_type::ptr message_ptr
 
typedef websocketpp::lib::shared_ptr< boost::asio::ssl::context > context_ptr
 
typedef client::connection_ptr connection_ptr
 

Functions

int main (int argc, char *argv[])
 

Typedef Documentation

◆ client

====== WARNING ======== This example is presently used as a scratch space. It may or may not be broken at any given time.

Definition at line 39 of file debug_client.cpp.

◆ connection_ptr

Definition at line 48 of file debug_client.cpp.

◆ context_ptr

typedef websocketpp::lib::shared_ptr<boost::asio::ssl::context> context_ptr

Definition at line 47 of file debug_client.cpp.

◆ message_ptr

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 150 of file debug_client.cpp.

150 {
151 std::string uri = "wss://echo.websocket.org";
152
153 if (argc == 2) {
154 uri = argv[1];
155 }
156
157 try {
158 perftest endpoint;
159 endpoint.start(uri);
160 } catch (const std::exception & e) {
161 std::cout << e.what() << std::endl;
162 } catch (websocketpp::lib::error_code e) {
163 std::cout << e.message() << std::endl;
164 } catch (...) {
165 std::cout << "other exception" << std::endl;
166 }
167}
void start(std::string uri)
char ** argv
Here is the call graph for this function: