mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-12 15:57:12 +01:00
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
48 lines
887 B
C++
48 lines
887 B
C++
//
|
|
// NullPartHandler.h
|
|
//
|
|
// 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
|