initial commit

This commit is contained in:
Peter Thorson
2011-09-07 20:27:29 -05:00
commit fa73c478e9
34 changed files with 3581 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#include "echo.hpp"
using websocketecho::echo_handler;
bool echo_handler::validate(websocketpp::session_ptr client) {
return true;
}
void echo_handler::message(websocketpp::session_ptr client, const std::string &msg) {
client->send(msg);
}
void echo_handler::message(websocketpp::session_ptr client,
const std::vector<unsigned char> &data) {
client->send(data);
}