PacketOutputWindowLogger.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. /// \file
  11. /// \brief This will write all incoming and outgoing network messages to a file
  12. ///
  13. #include "NativeFeatureIncludes.h"
  14. #if _RAKNET_SUPPORT_PacketLogger==1
  15. #ifndef __PACKET_OUTPUT_WINDOW_LOGGER_H_
  16. #define __PACKET_OUTPUT_WINDOW_LOGGER_H_
  17. #include "PacketLogger.h"
  18. namespace RakNet
  19. {
  20. /// \ingroup PACKETLOGGER_GROUP
  21. /// \brief Packetlogger that outputs to the output window in the debugger. Windows only.
  22. class RAK_DLL_EXPORT PacketOutputWindowLogger : public PacketLogger
  23. {
  24. public:
  25. PacketOutputWindowLogger();
  26. virtual ~PacketOutputWindowLogger();
  27. virtual void WriteLog(const char *str);
  28. protected:
  29. };
  30. } // namespace RakNet
  31. #endif
  32. #endif // _RAKNET_SUPPORT_*
粤ICP备19079148号