ClickHouse/src/Server/TCPProtocolStackData.h
2022-09-29 00:13:40 +00:00

23 lines
522 B
C++

#pragma once
#include <string>
#include <Poco/Net/StreamSocket.h>
namespace DB
{
// Data to communicate between protocol layers
struct TCPProtocolStackData
{
// socket implementation can be replaced by some layer - TLS as an example
Poco::Net::StreamSocket socket;
// host from PROXY layer
std::string forwarded_for;
// certificate path from TLS layer to TCP layer
std::string certificate;
// default database from endpoint configuration to TCP layer
std::string default_database;
};
}