diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-29 22:08:06 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-29 22:08:06 +0100 |
commit | 5d94fe647e59aaec7775f1e1bd4a4982b677af01 (patch) | |
tree | e459388b0d937bdb4034676c1a8276c59904fc68 /main.cpp | |
parent | 2133fd579e0d4726b032288d10d053231109c586 (diff) |
HTTPServer/HTTPConnection cleanup.
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -13,9 +13,11 @@ int main(int argc, char **argv) { music::init(argv[1]); decoder::init(); encoder::init(); - + boost::asio::io_service io_service; - HTTPServer httpd(io_service, tcp::endpoint(tcp::v6(), 8000)); + + HTTP::Server httpd(io_service, tcp::endpoint(tcp::v6(), 8000)); + std::vector<boost::shared_ptr<boost::thread> > threads; for(std::size_t i = 0; i < 10; i++) { boost::shared_ptr<boost::thread> thread(new boost::thread(boost::bind(&boost::asio::io_service::run, &io_service))); |