コード例 #1
0
ファイル: receiver.hpp プロジェクト: nchaimov/hpx
 /// 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));
 }
コード例 #2
0
 /// 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));
 }
コード例 #3
0
ファイル: parcelhandler.cpp プロジェクト: cDoru/hpx
 ///////////////////////////////////////////////////////////////////////////
 /// \brief Make sure the specified locality is not held by any
 /// connection caches anymore
 void parcelhandler::remove_from_connection_cache(naming::locality const& loc)
 {
     parcelport* pp = find_parcelport(loc.get_type());
     if (!pp) {
         HPX_THROW_EXCEPTION(network_error,
             "parcelhandler::remove_from_connection_cache",
             "cannot find parcelport for connection type " +
                 get_connection_type_name(loc.get_type()));
         return;
     }
     pp->remove_from_connection_cache(loc);
 }
コード例 #4
0
ファイル: sender.hpp プロジェクト: DawidvC/hpx
        /// 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));
        }