/// Construct a listening parcelport_connection with the given io_service.
 parcelport_connection(boost::asio::io_service& io_service,
         naming::locality here,
         parcelset::shmem::parcelport& parcelport)
   : window_(io_service), in_buffer_(), parcelport_(parcelport)
 {
     std::string fullname(here.get_address() + "." +
         boost::lexical_cast<std::string>(here.get_port()));
     window_.set_option(parcelset::shmem::data_window::bound_to(fullname));
 }
Ejemplo n.º 2
0
 /// Construct a listening receiver with the given io_service.
 receiver(boost::asio::io_service& io_service,
         naming::locality here,
         connection_handler& parcelport)
   : window_(io_service), parcelport_(parcelport)
 {
     std::string fullname(here.get_address() + "." +
         boost::lexical_cast<std::string>(here.get_port()));
     window_.set_option(data_window::bound_to(fullname));
 }
Ejemplo n.º 3
0
        /// Construct a sending parcelport_connection with the given io_service.
        sender(boost::asio::io_service& io_service,
            naming::locality const& here, naming::locality const& there,
            data_buffer_cache& cache,
            performance_counters::parcels::gatherer& parcels_sent,
            std::size_t connection_count)
          : window_(io_service), there_(there), parcels_sent_(parcels_sent),
            cache_(cache)
        {
            std::string fullname(here.get_address() + "." +
                boost::lexical_cast<std::string>(here.get_port()) + "." +
                boost::lexical_cast<std::string>(connection_count));

            window_.set_option(data_window::bound_to(fullname));
        }