Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
print_server.cpp
Go to the documentation of this file.
1#include <iostream>
2
5
7
9 std::cout << msg->get_payload() << std::endl;
10}
11
12int main() {
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)
Server endpoint role based on the given config.
lib::weak_ptr< void > connection_hdl
A handle to uniquely identify a connection.
void on_message(websocketpp::connection_hdl, server::message_ptr msg)
int main()
websocketpp::server< websocketpp::config::asio > server
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