summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-12-27 02:47:56 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-12-27 02:47:56 +0100
commit9f78196611d8065f63ae4a81297723663d222ebe (patch)
treeb70e94f4f581db1298d86d3a44b3a2e2851c076d /main.cpp
parent6e376f69305dabe59362bb80051e4265c6409fe3 (diff)
Added a simple HTTP service which doesn't yet do anything useful.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 55c1de0..bb165a1 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,9 +1,14 @@
#include <iostream>
#include "music.h"
+#include "httpd.h"
int main(int argc, char **argv) {
try {
music::init(argv[1]);
+
+ boost::asio::io_service io_service;
+ HTTPServer httpd(io_service);
+ io_service.run();
} catch(std::exception& e) {
std::cerr << e.what() << std::endl;
}