Fixed chat server to work with new api fixes #4

This commit is contained in:
Peter Thorson
2011-09-11 10:41:51 -05:00
parent 84f3055550
commit 348214d568
7 changed files with 353 additions and 52 deletions

View File

@@ -35,8 +35,8 @@
using boost::asio::ip::tcp;
int main(int argc, char* argv[]) {
std::string host = "localhost:5000";
short port = 5000;
std::string host = "localhost:9000";
short port = 9000;
if (argc == 3) {
// TODO: input validation?
@@ -56,7 +56,7 @@ int main(int argc, char* argv[]) {
tcp::endpoint endpoint(tcp::v6(), port);
websocketpp::server_ptr server(
new websocketpp::server(io_service,endpoint,host,chat_handler)
new websocketpp::server(io_service,endpoint,chat_handler)
);
// setup server settings