boost.png (6897 bytes)

PrevUpHomeNext

Class connection_base

boost::net::socket::impl::connection_base — factor out template independent parts of the connection

Synopsis

class connection_base {
public:
  // types
  typedef net::socket::socket          socket_base_t;              
  typedef boost::net::socket::socket_t os_socket_t;                
  typedef os_socket_t                  descriptor_t;               
  typedef boost::function0< void >     close_notification_function;  // close notifcation for control 

  // construct/copy/destruct
  connection_base(socket_base_t &);
  connection_base(connection_base &);

  // public member functions
  bool is_open() const;
  os_socket_t descriptor() const;
  void on_close_notification(const close_notification_function &) ;

  // protected member functions
  void has_closed() ;
};

Description

connection_base construct/copy/destruct

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

connection_base public member functions

  1. bool is_open() const;
  2. os_socket_t descriptor() const;

    we should find a way to control access to this

  3. void on_close_notification(const close_notification_function & fn) ;

connection_base protected member functions

  1. void has_closed() ;
Copyright © 2004 Hugo Duncan

PrevUpHomeNext