中间件底层,websocket

ONativeBinaryStream.hpp 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //******************************************************************************
  2. // RCF - Remote Call Framework
  3. //
  4. // Copyright (c) 2005 - 2020, Delta V Software. All rights reserved.
  5. // http://www.deltavsoft.com
  6. //
  7. // RCF is distributed under dual licenses - closed source or GPL.
  8. // Consult your particular license for conditions of use.
  9. //
  10. // If you have not purchased a commercial license, you are using RCF
  11. // under GPL terms.
  12. //
  13. // Version: 3.2
  14. // Contact: support <at> deltavsoft.com
  15. //
  16. //******************************************************************************
  17. #ifndef INCLUDE_SF_ONATIVEBINARYSTREAM_HPP
  18. #define INCLUDE_SF_ONATIVEBINARYSTREAM_HPP
  19. #include <SF/Stream.hpp>
  20. namespace SF {
  21. class ONativeBinaryStream : public OStream
  22. {
  23. public:
  24. ONativeBinaryStream(RCF::MemOstream &os) : OStream(os)
  25. {}
  26. ONativeBinaryStream(std::ostream &os) : OStream(os)
  27. {}
  28. I_Encoding &getEncoding()
  29. {
  30. return mEncoding;
  31. }
  32. private:
  33. EncodingBinaryNative mEncoding;
  34. };
  35. }
  36. #endif // ! INCLUDE_SF_ONATIVEBINARYSTREAM_HPP