/usr/include/zeep/http/connection.hpp is in libzeep-dev 3.0.2-5ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | // Copyright Maarten L. Hekkelman, Radboud University 2008-2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SOAP_HTTP_CONNECTION_HPP
#define SOAP_HTTP_CONNECTION_HPP
#include <boost/enable_shared_from_this.hpp>
#include <boost/noncopyable.hpp>
#include <boost/array.hpp>
#include <boost/asio/posix/stream_descriptor.hpp>
#include <zeep/http/request_parser.hpp>
#include <zeep/http/request_handler.hpp>
namespace zeep { namespace http {
/// The HTTP server implementation of libzeep is inspired by the example code
/// as provided by boost::asio. These objects are not to be used directly.
class connection
: public boost::enable_shared_from_this<connection>
, public boost::noncopyable
{
public:
connection(boost::asio::io_service& service,
request_handler& handler);
void start();
void handle_read(const boost::system::error_code& ec,
size_t bytes_transferred);
void handle_write(const boost::system::error_code& ec);
boost::asio::ip::tcp::socket&
get_socket() { return m_socket; }
private:
boost::asio::ip::tcp::socket m_socket;
request_parser m_request_parser;
request_handler& m_request_handler;
boost::array<char,8192> m_buffer;
request m_request;
reply m_reply;
};
}
}
#endif
|