summaryrefslogtreecommitdiff
path: root/main.cpp
blob: bb165a126fa2bfb0110b4d99fd60e14c18e44d81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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;
	}

	return 0;
}