refectors session into client_session/server_session/core, adds client handler and chat_client example. Client functionality is experimental and non-compliant at the moment.

This commit is contained in:
Peter Thorson
2011-09-26 09:49:52 -05:00
parent 7d938df15e
commit da1795feac
29 changed files with 2100 additions and 452 deletions

View File

@@ -36,7 +36,7 @@ using boost::asio::ip::tcp;
int main(int argc, char* argv[]) {
std::string host = "localhost";
short port = 5000;
short port = 9002;
std::string full_host;
if (argc == 3) {
@@ -47,10 +47,10 @@ int main(int argc, char* argv[]) {
std::stringstream temp;
temp << argv[1] << ":" << port;
temp << host << ":" << port;
full_host = temp.str();
websocketecho::echo_handler_ptr echo_handler(new websocketecho::echo_handler());
websocketecho::echo_server_handler_ptr echo_handler(new websocketecho::echo_server_handler());
try {
boost::asio::io_service io_service;