ClickHouse/src/Storages/StorageMongoDBSocketFactory.h

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

20 lines
553 B
C++
Raw Normal View History

2021-03-23 15:01:13 +00:00
#pragma once
#include <Poco/MongoDB/Connection.h>
namespace DB
{
class StorageMongoDBSocketFactory : public Poco::MongoDB::Connection::SocketFactory
{
public:
2024-03-14 12:16:33 +00:00
Poco::Net::StreamSocket createSocket(const std::string & host, int port, Poco::Timespan connectTimeout, bool secure) override;
2021-03-23 15:01:13 +00:00
private:
2021-07-29 08:38:39 +00:00
static Poco::Net::StreamSocket createPlainSocket(const std::string & host, int port, Poco::Timespan connectTimeout);
static Poco::Net::StreamSocket createSecureSocket(const std::string & host, int port, Poco::Timespan connectTimeout);
2021-03-23 15:01:13 +00:00
};
}