X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fjson_server.h;h=f36e621f3f6fdbc23ee27d811c5213b0408b422f;hb=HEAD;hp=623067558c938216be282a1fe96889f08877feae;hpb=830acd944e1a194d8639f51cd72d3839ecd0ecfe;p=dcpomatic.git diff --git a/src/lib/json_server.h b/src/lib/json_server.h index 623067558..c97e496d1 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); + void handle (std::shared_ptr socket); + void request (std::string url, std::shared_ptr socket); }; - -