boost.png (6897 bytes)

PrevUpHomeNext

Class template connection_handled

boost::net::socket::impl::connection_handled — Add handlers to connection base.

Synopsis

template<typename Handler> 
class connection_handled
  :  : public boost::net::socket::impl::connection_base
{
public:
  // construct/copy/destruct
  connection_handled(socket_base_t &);
  connection_handled(connection_handled &);

  // public member functions
  template<typename AHandler> void attach(AHandler) ;
  template<typename Tag, typename AHandler> void attach(AHandler) ;
  void detach() ;

  // protected member functions
  void execute_on_closed() ;
  void execute_on_sent(int, int) ;
  void execute_on_received(int, int) ;
  void execute_on_connection_error(net::connection_error) ;
};

Description

connection_handled construct/copy/destruct

  1. connection_handled(socket_base_t & s);
  2. connection_handled(connection_handled & s);

connection_handled public member functions

  1. template<typename AHandler> void attach(AHandler handler) ;
  2. template<typename Tag, typename AHandler> void attach(AHandler handler) ;
  3. void detach() ;

connection_handled protected member functions

  1. void execute_on_closed() ;
  2. void execute_on_sent(int n, int err) ;
  3. void execute_on_received(int n, int err) ;
  4. void execute_on_connection_error(net::connection_error err) ;
Copyright © 2004 Hugo Duncan

PrevUpHomeNext