1
#include "source/extensions/upstreams/http/udp/config.h"
2

            
3
#include "source/extensions/upstreams/http/udp/upstream_request.h"
4

            
5
namespace Envoy {
6
namespace Extensions {
7
namespace Upstreams {
8
namespace Http {
9
namespace Udp {
10

            
11
Router::GenericConnPoolPtr UdpGenericConnPoolFactory::createGenericConnPool(
12
    Upstream::HostConstSharedPtr host, Upstream::ThreadLocalCluster&,
13
    Router::GenericConnPoolFactory::UpstreamProtocol, Upstream::ResourcePriority,
14
    absl::optional<Envoy::Http::Protocol>, Upstream::LoadBalancerContext*,
15
2
    const Protobuf::Message&) const {
16
2
  auto ret = std::make_unique<UdpConnPool>(host);
17
2
  return (ret->valid() ? std::move(ret) : nullptr);
18
2
}
19

            
20
REGISTER_FACTORY(UdpGenericConnPoolFactory, Router::GenericConnPoolFactory);
21

            
22
} // namespace Udp
23
} // namespace Http
24
} // namespace Upstreams
25
} // namespace Extensions
26
} // namespace Envoy