more client work

This commit is contained in:
Peter Thorson
2011-12-06 08:45:59 -06:00
parent 695b8a4d30
commit f1a724e0d4
4 changed files with 192 additions and 39 deletions

View File

@@ -38,18 +38,6 @@ public:
typedef echo_server_handler type;
typedef plain_endpoint_type::connection_ptr connection_ptr;
void validate(connection_ptr connection) {
//std::cout << "state: " << connection->get_state() << std::endl;
}
void on_open(connection_ptr connection) {
//std::cout << "connection opened" << std::endl;
}
void on_close(connection_ptr connection) {
//std::cout << "connection closed" << std::endl;
}
void on_message(connection_ptr connection,websocketpp::message::data_ptr msg) {
//std::cout << "got message: " << *msg << std::endl;
connection->send(msg->get_payload(),(msg->get_opcode() == websocketpp::frame::opcode::BINARY));