Realistic 3D camera system
3D camera system components
server.hpp
Go to the documentation of this file.
1 //
2 // server.hpp
3 // ~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef HTTP_SERVER_HPP
12 #define HTTP_SERVER_HPP
13 
14 #include <asio.hpp>
15 #include <string>
16 #include <boost/noncopyable.hpp>
17 #include "connection.hpp"
18 #include "connection_manager.hpp"
19 #include "request_handler.hpp"
20 
21 namespace http {
22 namespace server {
23 
25 class server
26  : private boost::noncopyable
27 {
28 public:
31  explicit server(const std::string& address, const std::string& port,
32  const std::string& doc_root);
33 
35  void run();
36 
37 private:
39  void start_accept();
40 
42  void handle_accept(const asio::error_code& e);
43 
45  void handle_stop();
46 
48  asio::io_service io_service_;
49 
51  asio::signal_set signals_;
52 
54  asio::ip::tcp::acceptor acceptor_;
55 
57  connection_manager connection_manager_;
58 
60  connection_ptr new_connection_;
61 
63  request_handler request_handler_;
64 };
65 
66 } // namespace server
67 } // namespace http
68 
69 #endif // HTTP_SERVER_HPP
Provides core I/O functionality.
Definition: io_service.hpp:184
pylon Camera Software Suite for Linux for Use with Basler Gigabit the pylon Viewer and the IP Configurator applications might not be available System I340 and I350 series Although the pylon software will work with any GigE network we would recommend to use one of these adapters USB For U3V devices a USB3 capable USB controller is necessary For best performance and stability we highly recommend a kernel the following settings should be i e
Provides signal functionality.
The common handler for all incoming requests.
server(const std::string &address, const std::string &port, const std::string &doc_root)
Definition: server.cpp:18
Provides the ability to accept new connections.
boost::shared_ptr< connection > connection_ptr
Definition: connection.hpp:78
Class to represent an error code value.
Definition: error_code.hpp:80
The top-level class of the HTTP server.
Definition: server.hpp:25
void run()
Run the server&#39;s io_service loop.
Definition: server.cpp:49