From 945887004432a7634ce096a7c3744b42ae2ab987 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Tue, 28 Dec 2010 23:48:16 +0100 Subject: Specify endpoint in HTTPServer constructor. --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 2c0ada7..c102a5b 100644 --- a/main.cpp +++ b/main.cpp @@ -15,7 +15,7 @@ int main(int argc, char **argv) { encoder::init(); boost::asio::io_service io_service; - HTTPServer httpd(io_service); + HTTPServer httpd(io_service, tcp::endpoint(tcp::v6(), 8000)); std::vector > threads; for(std::size_t i = 0; i < 10; i++) { boost::shared_ptr thread(new boost::thread(boost::bind(&boost::asio::io_service::run, &io_service))); -- cgit v1.2.3