Kea 2.7.5
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>
6
7namespace isc {
8namespace tcp {
9
10extern const isc::log::MessageID MT_TCP_LISTENER_MGR_STARTED = "MT_TCP_LISTENER_MGR_STARTED";
11extern const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPED = "MT_TCP_LISTENER_MGR_STOPPED";
12extern const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPING = "MT_TCP_LISTENER_MGR_STOPPING";
13extern const isc::log::MessageID TCP_CLIENT_REQUEST_RECEIVED = "TCP_CLIENT_REQUEST_RECEIVED";
14extern const isc::log::MessageID TCP_CONNECTION_REJECTED_BY_FILTER = "TCP_CONNECTION_REJECTED_BY_FILTER";
15extern const isc::log::MessageID TCP_CONNECTION_SHUTDOWN = "TCP_CONNECTION_SHUTDOWN";
16extern const isc::log::MessageID TCP_CONNECTION_SHUTDOWN_FAILED = "TCP_CONNECTION_SHUTDOWN_FAILED";
17extern const isc::log::MessageID TCP_CONNECTION_STOP = "TCP_CONNECTION_STOP";
18extern const isc::log::MessageID TCP_CONNECTION_STOP_FAILED = "TCP_CONNECTION_STOP_FAILED";
19extern const isc::log::MessageID TCP_DATA_RECEIVED = "TCP_DATA_RECEIVED";
20extern const isc::log::MessageID TCP_DATA_SENT = "TCP_DATA_SENT";
21extern const isc::log::MessageID TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED = "TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED";
22extern const isc::log::MessageID TCP_REQUEST_RECEIVED_FAILED = "TCP_REQUEST_RECEIVED_FAILED";
23extern const isc::log::MessageID TCP_REQUEST_RECEIVE_START = "TCP_REQUEST_RECEIVE_START";
24extern const isc::log::MessageID TCP_SERVER_RESPONSE_SEND = "TCP_SERVER_RESPONSE_SEND";
25extern const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_FAILED = "TLS_CONNECTION_HANDSHAKE_FAILED";
26extern const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_START = "TLS_CONNECTION_HANDSHAKE_START";
27extern const isc::log::MessageID TLS_REQUEST_RECEIVE_START = "TLS_REQUEST_RECEIVE_START";
28extern const isc::log::MessageID TLS_SERVER_RESPONSE_SEND = "TLS_SERVER_RESPONSE_SEND";
29
30} // namespace tcp
31} // namespace isc
32
33namespace {
34
35const 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
58const isc::log::MessageInitializer initializer(values);
59
60} // Anonymous namespace
61
Initialize Message Dictionary.
const char * MessageID
const isc::log::MessageID TCP_CONNECTION_STOP_FAILED
const isc::log::MessageID TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED
const isc::log::MessageID TLS_REQUEST_RECEIVE_START
const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_FAILED
const isc::log::MessageID TCP_CONNECTION_STOP
const isc::log::MessageID TCP_DATA_SENT
const isc::log::MessageID TCP_CONNECTION_REJECTED_BY_FILTER
const isc::log::MessageID MT_TCP_LISTENER_MGR_STARTED
const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_START
const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPING
const isc::log::MessageID TLS_SERVER_RESPONSE_SEND
const isc::log::MessageID TCP_DATA_RECEIVED
const isc::log::MessageID TCP_REQUEST_RECEIVE_START
const isc::log::MessageID TCP_SERVER_RESPONSE_SEND
const isc::log::MessageID TCP_REQUEST_RECEIVED_FAILED
const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPED
const isc::log::MessageID TCP_CONNECTION_SHUTDOWN
const isc::log::MessageID TCP_CONNECTION_SHUTDOWN_FAILED
const isc::log::MessageID TCP_CLIENT_REQUEST_RECEIVED
Defines the logger used by the top-level component of kea-lfc.