Update style to (almost) conform to ndn-cxx style using clang-format
diff --git a/server/connection.hpp b/server/connection.hpp
index 107af14..791de02 100644
--- a/server/connection.hpp
+++ b/server/connection.hpp
@@ -30,15 +30,15 @@
#ifndef HTTP_CONNECTION_HPP
#define HTTP_CONNECTION_HPP
-#include <boost/asio.hpp>
-#include <boost/array.hpp>
-#include <boost/noncopyable.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/enable_shared_from_this.hpp>
#include "reply.hpp"
#include "request.hpp"
#include "request_handler.hpp"
#include "request_parser.hpp"
+#include <boost/array.hpp>
+#include <boost/asio.hpp>
+#include <boost/enable_shared_from_this.hpp>
+#include <boost/noncopyable.hpp>
+#include <boost/shared_ptr.hpp>
namespace http {
namespace server {
@@ -46,31 +46,33 @@
class connection_manager;
/// Represents a single connection from a client.
-class connection
- : public boost::enable_shared_from_this<connection>,
- private boost::noncopyable
+class connection : public boost::enable_shared_from_this<connection>, private boost::noncopyable
{
public:
/// Construct a connection with the given io_service.
- explicit connection(boost::asio::io_service& io_service,
- connection_manager& manager, request_handler& handler);
+ explicit connection(boost::asio::io_service& io_service, connection_manager& manager,
+ request_handler& handler);
/// Get the socket associated with the connection.
- boost::asio::ip::tcp::socket& socket();
+ boost::asio::ip::tcp::socket&
+ socket();
/// Start the first asynchronous operation for the connection.
- void start();
+ void
+ start();
/// Stop all asynchronous operations associated with the connection.
- void stop();
+ void
+ stop();
private:
/// Handle completion of a read operation.
- void handle_read(const boost::system::error_code& e,
- std::size_t bytes_transferred);
+ void
+ handle_read(const boost::system::error_code& e, std::size_t bytes_transferred);
/// Handle completion of a write operation.
- void handle_write(const boost::system::error_code& e);
+ void
+ handle_write(const boost::system::error_code& e);
/// Socket for the connection.
boost::asio::ip::tcp::socket socket_;