diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-02-19 10:47:20 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-02-19 10:47:20 +0000 |
| commit | 830acd944e1a194d8639f51cd72d3839ecd0ecfe (patch) | |
| tree | 1273401b334c92546730abe1e35794be21a4bf42 /src/lib/json_server.h | |
| parent | b5b20f829ed95febe7aba55ebe3679c998b35b5e (diff) | |
Missing files.
Diffstat (limited to 'src/lib/json_server.h')
| -rw-r--r-- | src/lib/json_server.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/json_server.h b/src/lib/json_server.h new file mode 100644 index 000000000..623067558 --- /dev/null +++ b/src/lib/json_server.h @@ -0,0 +1,31 @@ +/* + Copyright (C) 2014 Carl Hetherington <cth@carlh.net> + + This program 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, + 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. + +*/ + +class JSONServer +{ +public: + JSONServer (int port); + +private: + void run (int port); + void handle (boost::shared_ptr<boost::asio::ip::tcp::socket> socket); + void request (std::string url, boost::shared_ptr<boost::asio::ip::tcp::socket> socket); +}; + + |
