boost.png (6897 bytes)

PrevUpHomeNext

Class template connector

boost::net::socket::connector — Socket connector.

Synopsis

template<typename Demultiplexer, typename ConnectionSynchronisation, 
typename SocketErrorPolicy, typename EventHandler> 
class connector {
public:
// construct/copy/destruct
connector(Demultiplexer &);

// public member functions
template<typename Endpoint> connector_error connect(const Endpoint &) ;
template<typename AHandler> void attach(AHandler *) ;
void on_connected(const boost::function< typename net::socket::on_connected_tag::fn_type > &) ;
void on_can_not_connect(const boost::function< typename net::socket::on_can_not_connect_tag::fn_type > &) ;
};

Description

connector construct/copy/destruct

  1. connector(Demultiplexer & demux);

connector public member functions

  1. template<typename Endpoint> 
    connector_error connect(const Endpoint & endpoint) ;
  2. template<typename AHandler> void attach(AHandler * handler) ;
  3. void on_connected(const boost::function< typename net::socket::on_connected_tag::fn_type > & handler) ;
  4. void on_can_not_connect(const boost::function< typename net::socket::on_can_not_connect_tag::fn_type > & handler) ;
Copyright 2004 Hugo Duncan

PrevUpHomeNext