summaryrefslogtreecommitdiff
path: root/server/main.cpp
blob: 3e311e55572f1b2ea535b7573ed16d3a53277708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
#include <boost/asio.hpp>

#include "tcpserver.h"

int main() {
	try {
		boost::asio::io_service io_service;
		
		TCPServer server(io_service);
		
		std::cout << "Listening to port 12345" << std::endl;
		
		io_service.run();
		
	} catch(std::exception& e) {
		std::cerr << "Exception caught: " << e.what() << std::endl;
	}
}