forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
listener_manager_factory.h
40 lines (31 loc) · 1.44 KB
/
listener_manager_factory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include "envoy/config/typed_config.h"
#include "envoy/server/instance.h"
#include "envoy/server/listener_manager.h"
#include "envoy/server/worker.h"
#include "source/common/quic/quic_stat_names.h"
namespace Envoy {
namespace Server {
class ListenerManagerFactory : public Config::TypedFactory {
public:
virtual std::unique_ptr<ListenerManager>
createListenerManager(Instance& server, std::unique_ptr<ListenerComponentFactory>&& factory,
WorkerFactory& worker_factory, bool enable_dispatcher_stats,
Quic::QuicStatNames& quic_stat_names) PURE;
std::string category() const override { return "envoy.listener_manager_impl"; }
};
class ConnectionHandler : public Network::TcpConnectionHandler,
public Network::UdpConnectionHandler,
public Network::InternalListenerManager {};
class ConnectionHandlerFactory : public Config::UntypedFactory {
public:
virtual std::unique_ptr<ConnectionHandler>
createConnectionHandler(Event::Dispatcher& dispatcher,
absl::optional<uint32_t> worker_index) PURE;
virtual std::unique_ptr<ConnectionHandler>
createConnectionHandler(Event::Dispatcher& dispatcher, absl::optional<uint32_t> worker_index,
OverloadManager& overload_manager) PURE;
std::string category() const override { return "envoy.connection_handler"; }
};
} // namespace Server
} // namespace Envoy