Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
print_server.cpp File Reference
#include <iostream>
#include <websocketpp/config/asio_no_tls.hpp>
#include <websocketpp/server.hpp>
Include dependency graph for print_server.cpp:

Go to the source code of this file.

Typedefs

typedef websocketpp::server< websocketpp::config::asioserver
 

Functions

void on_message (websocketpp::connection_hdl, server::message_ptr msg)
 
int main ()
 

Typedef Documentation

◆ server

Function Documentation

◆ main()

int main ( void )

Definition at line 12 of file print_server.cpp.

12 {
14
15 print_server.set_message_handler(&on_message);
18
19 print_server.init_asio();
20 print_server.listen(9002);
21 print_server.start_accept();
22
24}
void run(uint16_t port)
void on_message(websocketpp::connection_hdl, server::message_ptr msg)
static level const all
Special aggregate value representing "all levels".
Definition levels.hpp:152
static level const all
Special aggregate value representing "all levels".
Definition levels.hpp:80
Here is the call graph for this function:

◆ on_message()

Definition at line 8 of file print_server.cpp.

8 {
9 std::cout << msg->get_payload() << std::endl;
10}
Here is the caller graph for this function: