X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fjson_server.h;h=f36e621f3f6fdbc23ee27d811c5213b0408b422f;hb=0877bf6d06de8e6f768534ec40c26bf629618a20;hp=06c49d885b7c81dff802441eb883c87080114f01;hpb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;p=dcpomatic.git diff --git a/src/lib/json_server.h b/src/lib/json_server.h index 06c49d885..f36e621f3 100644 --- a/src/lib/json_server.h +++ b/src/lib/json_server.h @@ -1,31 +1,32 @@ /* Copyright (C) 2014 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ +#include + class JSONServer { public: - JSONServer (int port); + explicit JSONServer (int port); private: void run (int port); void handle (boost::shared_ptr socket); void request (std::string url, boost::shared_ptr socket); }; - -