blob: 4ad401e723f86dd068f9dd576a91fe03a362a783 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#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;
};
}
|