NullPartHandler.h 887 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // NullPartHandler.h
  3. //
  4. // Library: Net
  5. // Package: Messages
  6. // Module: NullPartHandler
  7. //
  8. // Definition of the NullPartHandler class.
  9. //
  10. // Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
  11. // and Contributors.
  12. //
  13. // SPDX-License-Identifier: BSL-1.0
  14. //
  15. #ifndef Net_NullPartHandler_INCLUDED
  16. #define Net_NullPartHandler_INCLUDED
  17. #include "Poco/Net/Net.h"
  18. #include "Poco/Net/PartHandler.h"
  19. namespace Poco {
  20. namespace Net {
  21. class Net_API NullPartHandler: public PartHandler
  22. /// A very special PartHandler that simply discards all data.
  23. {
  24. public:
  25. NullPartHandler();
  26. /// Creates the NullPartHandler.
  27. ~NullPartHandler();
  28. /// Destroys the NullPartHandler.
  29. void handlePart(const MessageHeader& header, std::istream& stream);
  30. /// Reads and discards all data from the stream.
  31. };
  32. } } // namespace Poco::Net
  33. #endif // Net_NullPartHandler_INCLUDED