poco/Net/include/Poco/Net/NullPartHandler.h
Roger Meier b0581433a7 LICENSE: add info about SPDX-License-Identifier usage and use it
fix: remove executable flag and change back to 100644 (was 100755)

Signed-off-by: Roger Meier <r.meier@siemens.com>
2014-05-14 08:38:09 +02:00

50 lines
952 B
C++

//
// NullPartHandler.h
//
// $Id: //poco/1.4/Net/include/Poco/Net/NullPartHandler.h#1 $
//
// Library: Net
// Package: Messages
// Module: NullPartHandler
//
// Definition of the NullPartHandler class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_NullPartHandler_INCLUDED
#define Net_NullPartHandler_INCLUDED
#include "Poco/Net/Net.h"
#include "Poco/Net/PartHandler.h"
namespace Poco {
namespace Net {
class Net_API NullPartHandler: public PartHandler
/// A very special PartHandler that simply discards all data.
{
public:
NullPartHandler();
/// Creates the NullPartHandler.
~NullPartHandler();
/// Destroys the NullPartHandler.
void handlePart(const MessageHeader& header, std::istream& stream);
/// Reads and discards all data from the stream.
};
} } // namespace Poco::Net
#endif // Net_NullPartHandler_INCLUDED