ClickHouse/src/Server/TCPProtocolStackData.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
522 B
C++
Raw Normal View History

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