debug client/server updates
This commit is contained in:
1 parent
71f88c71d6
commit
3c6c757d93
2 files changed
+22
-2
No files matched your search
@@ -88,6 +88,11 @@ using websocketpp::lib::bind;
|
||||
// pull out the type of messages sent by our config
|
||||
typedef server::message_ptr message_ptr;
|
||||
|
||||
bool validate(server *, websocketpp::connection_hdl) {
|
||||
//sleep(6);
|
||||
return false;
|
||||
}
|
||||
|
||||
void on_http(server* s, websocketpp::connection_hdl hdl) {
|
||||
server::connection_ptr con = s->get_con_from_hdl(hdl);
|
||||
|
||||
@@ -142,6 +147,8 @@ int main() {
|
||||
echo_server.set_fail_handler(&on_fail);
|
||||
echo_server.set_close_handler(&on_close);
|
||||
|
||||
echo_server.set_validate_handler(bind(&validate,&echo_server,::_1));
|
||||
|
||||
// Listen on port 9012
|
||||
echo_server.listen(9012);
|
||||
|
||||
|
||||
Reference in new issue
Block a user