hpx/asio/asio_util.hpp#
Defined in header hpx/asio/asio_util.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
-
namespace hpx
-
namespace util#
Functions
-
bool get_endpoint(std::string const &addr, std::uint16_t port, ::asio::ip::tcp::endpoint &ep, bool force_ipv4 = false)#
-
::asio::ip::tcp::endpoint resolve_hostname(std::string const &hostname, std::uint16_t port, ::asio::io_context &io_service, bool force_ipv4 = false)#
-
detail::endpoint_iterator_type connect_begin(std::string const &address, std::uint16_t port, ::asio::io_context &io_service)#
-
template<typename Locality>
detail::endpoint_iterator_type connect_begin(Locality const &loc, ::asio::io_context &io_service)# Returns an iterator which when dereferenced will give an endpoint suitable for a call to connect() related to this locality.
-
inline detail::endpoint_iterator_type connect_end()#
-
void open_socket_for_connect(::asio::ip::tcp::socket &s, ::asio::ip::tcp::endpoint const &ep, std::error_code &ec)#
Opens the given socket for a connection attempt to the given endpoint.
On Windows, a connection attempt to a port nobody listens on is reset by the target, but the SYN is retransmitted after the reset (twice by default), so connect() reports connection_refused only after about two seconds. The socket is configured to not retransmit the SYN, callers are expected to retry failed connection attempts themselves.
-
detail::endpoint_iterator_type accept_begin(std::string const &address, std::uint16_t port, ::asio::io_context &io_service)#
-
template<typename Locality>
detail::endpoint_iterator_type accept_begin(Locality const &loc, ::asio::io_context &io_service)# Returns an iterator which when dereferenced will give an endpoint suitable for a call to accept() related to this locality.
-
inline detail::endpoint_iterator_type accept_end()#
-
bool get_endpoint(std::string const &addr, std::uint16_t port, ::asio::ip::tcp::endpoint &ep, bool force_ipv4 = false)#
-
namespace util#