mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
b79ead9c84
* Replicate poco into base/poco/ * De-register poco submodule * Build poco from ClickHouse * Exclude poco from stylecheck * Exclude poco from whitespace check * Exclude poco from typo check * Remove x bit from sources/headers (the style check complained) * Exclude poco from duplicate include check * Fix fasttest * Remove contrib/poco-cmake/* * Simplify poco build descriptions * Remove poco stuff not used by ClickHouse * Glob poco sources * Exclude poco from clang-tidy
47 lines
731 B
C++
47 lines
731 B
C++
//
|
|
// NullPartHandler.cpp
|
|
//
|
|
// Library: Net
|
|
// Package: Messages
|
|
// Module: NullPartHandler
|
|
//
|
|
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "Poco/Net/NullPartHandler.h"
|
|
#include "Poco/Net/MessageHeader.h"
|
|
#include "Poco/NullStream.h"
|
|
#include "Poco/StreamCopier.h"
|
|
|
|
|
|
using Poco::NullOutputStream;
|
|
using Poco::StreamCopier;
|
|
|
|
|
|
namespace Poco {
|
|
namespace Net {
|
|
|
|
|
|
NullPartHandler::NullPartHandler()
|
|
{
|
|
}
|
|
|
|
|
|
NullPartHandler::~NullPartHandler()
|
|
{
|
|
}
|
|
|
|
|
|
void NullPartHandler::handlePart(const MessageHeader& header, std::istream& stream)
|
|
{
|
|
NullOutputStream ostr;
|
|
StreamCopier::copyStream(stream, ostr);
|
|
}
|
|
|
|
|
|
} } // namespace Poco::Net
|