2 * @file websocket_server.hpp
4 * @brief Settings daemon WebSocket server header.
6 * @author Ossama Othman @<ossama.othman@@intel.com@>
9 * Copyright 2013 Intel Corporation All Rights Reserved.
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation;
14 * version 2.1 of the License.
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301 USA
26 * @note This header is internal.
29 #ifndef IVI_SETTINGS_WEBSOCKET_SERVER_HPP
30 #define IVI_SETTINGS_WEBSOCKET_SERVER_HPP
32 #include <libwebsockets.h>
43 * @class websocket_server
45 * @brief IVI Settings web socket server
47 * This class implements the server that listens for and handles
50 class websocket_server
55 websocket_server(configurator const & config,
61 /// Run the websocket server event loop in its own thread.
67 * @name Prevent copying
70 websocket_server(websocket_server const &) = delete;
71 websocket_server & operator=(websocket_server const &) = delete;
76 /// Our libwebsocket state.
77 libwebsocket_context * context_;
85 #endif /* IVI_SETTINGS_WEBSOCKET_SERVER_HPP */
91 // indent-tabs-mode: nil