| Kea 3.0.2-git

tcp_messages.cc
Go to the documentation of this file.
1// File created from src/lib/tcp/tcp_messages.mes
2
3#include <cstddef>
4#include <log/message_types.h>
5#include <log/message_initializer.h>
6
7 namespace isc {
8 namespace tcp {
9
10 extern const isc::log::MessageID MT_TCP_LISTENER_MGR_STARTED = "MT_TCP_LISTENER_MGR_STARTED";
11 extern const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPED = "MT_TCP_LISTENER_MGR_STOPPED";
12 extern const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPING = "MT_TCP_LISTENER_MGR_STOPPING";
13 extern const isc::log::MessageID TCP_CLIENT_REQUEST_RECEIVED = "TCP_CLIENT_REQUEST_RECEIVED";
14 extern const isc::log::MessageID TCP_CONNECTION_REJECTED_BY_FILTER = "TCP_CONNECTION_REJECTED_BY_FILTER";
15 extern const isc::log::MessageID TCP_CONNECTION_SHUTDOWN = "TCP_CONNECTION_SHUTDOWN";
16 extern const isc::log::MessageID TCP_CONNECTION_SHUTDOWN_FAILED = "TCP_CONNECTION_SHUTDOWN_FAILED";
17 extern const isc::log::MessageID TCP_CONNECTION_STOP = "TCP_CONNECTION_STOP";
18 extern const isc::log::MessageID TCP_CONNECTION_STOP_FAILED = "TCP_CONNECTION_STOP_FAILED";
19 extern const isc::log::MessageID TCP_DATA_RECEIVED = "TCP_DATA_RECEIVED";
20 extern const isc::log::MessageID TCP_DATA_SENT = "TCP_DATA_SENT";
21 extern const isc::log::MessageID TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED = "TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED";
22 extern const isc::log::MessageID TCP_REQUEST_RECEIVED_FAILED = "TCP_REQUEST_RECEIVED_FAILED";
23 extern const isc::log::MessageID TCP_REQUEST_RECEIVE_START = "TCP_REQUEST_RECEIVE_START";
24 extern const isc::log::MessageID TCP_SERVER_RESPONSE_SEND = "TCP_SERVER_RESPONSE_SEND";
25 extern const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_FAILED = "TLS_CONNECTION_HANDSHAKE_FAILED";
26 extern const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_START = "TLS_CONNECTION_HANDSHAKE_START";
27 extern const isc::log::MessageID TLS_REQUEST_RECEIVE_START = "TLS_REQUEST_RECEIVE_START";
28 extern const isc::log::MessageID TLS_SERVER_RESPONSE_SEND = "TLS_SERVER_RESPONSE_SEND";
29
30} // namespace tcp
31} // namespace isc
32
33 namespace {
34
35 const char* values[] = {
36 "MT_TCP_LISTENER_MGR_STARTED", "MtTcpListenerMgr started with %1 threads, listening on %2:%3, use TLS: %4",
37 "MT_TCP_LISTENER_MGR_STOPPED", "MtTcpListenerMgr for %1:%2 stopped.",
38 "MT_TCP_LISTENER_MGR_STOPPING", "Stopping MtTcpListenerMgr for %1:%2",
39 "TCP_CLIENT_REQUEST_RECEIVED", "received TCP request from %1",
40 "TCP_CONNECTION_REJECTED_BY_FILTER", "connection from %1 has been denied by the connection filter.",
41 "TCP_CONNECTION_SHUTDOWN", "shutting down TCP connection from %1",
42 "TCP_CONNECTION_SHUTDOWN_FAILED", "shutting down TCP connection failed",
43 "TCP_CONNECTION_STOP", "stopping TCP connection from %1",
44 "TCP_CONNECTION_STOP_FAILED", "stopping TCP connection failed",
45 "TCP_DATA_RECEIVED", "received %1 bytes from %2",
46 "TCP_DATA_SENT", "send %1 bytes to %2",
47 "TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED", "closing connection with %1 as a result of a timeout",
48 "TCP_REQUEST_RECEIVED_FAILED", "An unexpected error occurred processing a request from %1, error: %2",
49 "TCP_REQUEST_RECEIVE_START", "start receiving request from %1 with timeout %2",
50 "TCP_SERVER_RESPONSE_SEND", "sending TCP response to %1",
51 "TLS_CONNECTION_HANDSHAKE_FAILED", "TLS handshake with %1 failed with %2",
52 "TLS_CONNECTION_HANDSHAKE_START", "start TLS handshake with %1 with timeout %2",
53 "TLS_REQUEST_RECEIVE_START", "start receiving request from %1 with timeout %2",
54 "TLS_SERVER_RESPONSE_SEND", "sending TLS response to %1",
55 NULL
56};
57
58 const isc::log::MessageInitializer initializer(values);
59
60} // Anonymous namespace
61
isc::log::MessageInitializer
Initialize Message Dictionary.
Definition message_initializer.h:72
message_initializer.h
message_types.h
isc::log::MessageID
const char * MessageID
Definition message_types.h:15
isc::tcp
Definition mt_tcp_listener_mgr.cc:23
isc::tcp::TCP_CONNECTION_STOP_FAILED
const isc::log::MessageID TCP_CONNECTION_STOP_FAILED
Definition tcp_messages.h:19
isc::tcp::TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED
const isc::log::MessageID TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED
Definition tcp_messages.h:22
isc::tcp::TLS_REQUEST_RECEIVE_START
const isc::log::MessageID TLS_REQUEST_RECEIVE_START
Definition tcp_messages.h:28
isc::tcp::TLS_CONNECTION_HANDSHAKE_FAILED
const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_FAILED
Definition tcp_messages.h:26
isc::tcp::TCP_CONNECTION_STOP
const isc::log::MessageID TCP_CONNECTION_STOP
Definition tcp_messages.h:18
isc::tcp::TCP_DATA_SENT
const isc::log::MessageID TCP_DATA_SENT
Definition tcp_messages.h:21
isc::tcp::TCP_CONNECTION_REJECTED_BY_FILTER
const isc::log::MessageID TCP_CONNECTION_REJECTED_BY_FILTER
Definition tcp_messages.h:15
isc::tcp::MT_TCP_LISTENER_MGR_STARTED
const isc::log::MessageID MT_TCP_LISTENER_MGR_STARTED
Definition tcp_messages.h:11
isc::tcp::TLS_CONNECTION_HANDSHAKE_START
const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_START
Definition tcp_messages.h:27
isc::tcp::MT_TCP_LISTENER_MGR_STOPPING
const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPING
Definition tcp_messages.h:13
isc::tcp::TLS_SERVER_RESPONSE_SEND
const isc::log::MessageID TLS_SERVER_RESPONSE_SEND
Definition tcp_messages.h:29
isc::tcp::TCP_DATA_RECEIVED
const isc::log::MessageID TCP_DATA_RECEIVED
Definition tcp_messages.h:20
isc::tcp::TCP_REQUEST_RECEIVE_START
const isc::log::MessageID TCP_REQUEST_RECEIVE_START
Definition tcp_messages.h:24
isc::tcp::TCP_SERVER_RESPONSE_SEND
const isc::log::MessageID TCP_SERVER_RESPONSE_SEND
Definition tcp_messages.h:25
isc::tcp::TCP_REQUEST_RECEIVED_FAILED
const isc::log::MessageID TCP_REQUEST_RECEIVED_FAILED
Definition tcp_messages.h:23
isc::tcp::MT_TCP_LISTENER_MGR_STOPPED
const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPED
Definition tcp_messages.h:12
isc::tcp::TCP_CONNECTION_SHUTDOWN
const isc::log::MessageID TCP_CONNECTION_SHUTDOWN
Definition tcp_messages.h:16
isc::tcp::TCP_CONNECTION_SHUTDOWN_FAILED
const isc::log::MessageID TCP_CONNECTION_SHUTDOWN_FAILED
Definition tcp_messages.h:17
isc::tcp::TCP_CLIENT_REQUEST_RECEIVED
const isc::log::MessageID TCP_CLIENT_REQUEST_RECEIVED
Definition tcp_messages.h:14
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148