#include "server.h" #include #include #include #include using namespace std; using boost::asio::ip::tcp; int main(int argc, char* argv[]) { try { if (argc != 2) { std::cerr << "Usage: ProxyServer \n"; return 1; } boost::asio::io_service io_service; server s(io_service, atoi(argv[1])); io_service.run(); } catch (std::exception& e) { std::cerr << "Exception: " << e.what() << "\n"; } return 0; }