libzeep

PrevUpHomeNext

Class connection

zeep::http::connection

Synopsis

// In header: <zeep/http/connection.hpp>


class connection : public std::enable_shared_from_this< connection > {
public:
  // construct/copy/destruct
  connection(connection &) = delete;
  connection(boost::asio::io_service &, server &);
  connection & operator=(connection &) = delete;

  // public member functions
  void start();
  void handle_read(boost::system::error_code, size_t);
  void handle_write(boost::system::error_code, size_t);
  boost::asio::ip::tcp::socket & get_socket();
};

Description

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.

connection public construct/copy/destruct

  1. connection(connection &) = delete;
  2. connection(boost::asio::io_service & service, server & handler);
  3. connection & operator=(connection &) = delete;

connection public member functions

  1. void start();
  2. void handle_read(boost::system::error_code ec, size_t bytes_transferred);
  3. void handle_write(boost::system::error_code ec, size_t bytes_transferred);
  4. boost::asio::ip::tcp::socket & get_socket();

PrevUpHomeNext