mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
23 lines
522 B
C++
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;
|
|
};
|
|
|
|
}
|