X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fjson_server.h;h=c97e496d1442c6308fa300c254834462b26cd578;hb=3e6b2d886961177c8d89b3f9168393d33c13bff2;hp=623067558c938216be282a1fe96889f08877feae;hpb=5f6d9c16df8e0b49160353354dccbcbdd1e57e9d;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); }; - -