removes all old style handler code

This commit is contained in:
Peter Thorson
2013-01-08 06:43:47 -06:00
parent 31cc4af4f4
commit a3acc4a1cf
8 changed files with 13 additions and 108 deletions

View File

@@ -6,7 +6,7 @@
typedef websocketpp::server<websocketpp::config::asio> server;
class handler : public server::handler {
/*class handler : public server::handler {
bool validate(connection_ptr con) {
std::cout << "handler validate" << std::endl;
return true;
@@ -62,7 +62,7 @@ class handler : public server::handler {
void on_interrupt(connection_ptr con) {
std::cout << "handler on_interrupt" << std::endl;
}
};
};*/
class test_handler {
public:
@@ -105,9 +105,7 @@ void on_message(server* s,websocketpp::connection_hdl hdl,message_ptr msg) {
}
int main() {
server::handler::ptr h(new handler());
server echo_server(h);
server echo_server;
echo_server.init_asio();