Line data Source code
1 : #include "source/extensions/clusters/common/logical_host.h" 2 : 3 : namespace Envoy { 4 : namespace Upstream { 5 : 6 : Upstream::Host::CreateConnectionData LogicalHost::createConnection( 7 : Event::Dispatcher& dispatcher, const Network::ConnectionSocket::OptionsSharedPtr& options, 8 0 : Network::TransportSocketOptionsConstSharedPtr transport_socket_options) const { 9 0 : const auto current_address = address(); 10 0 : const std::vector<Network::Address::InstanceConstSharedPtr>& address_list = addressList(); 11 : 12 0 : return HostImpl::createConnection( 13 0 : dispatcher, cluster(), current_address, address_list, transportSocketFactory(), options, 14 0 : override_transport_socket_options_ != nullptr ? override_transport_socket_options_ 15 0 : : transport_socket_options, 16 0 : std::make_shared<RealHostDescription>(current_address, shared_from_this())); 17 0 : } 18 : 19 : } // namespace Upstream 20 : } // namespace Envoy