You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
539 B

4 months ago
  1. /*
  2. * IXWebSocketCloseInfo.h
  3. * Author: Benjamin Sergeant
  4. * Copyright (c) 2017-2019 Machine Zone, Inc. All rights reserved.
  5. */
  6. #pragma once
  7. #include <cstdint>
  8. #include <string>
  9. namespace ix
  10. {
  11. struct WebSocketCloseInfo
  12. {
  13. uint16_t code;
  14. std::string reason;
  15. bool remote;
  16. WebSocketCloseInfo(uint16_t c = 0, const std::string& r = std::string(), bool rem = false)
  17. : code(c)
  18. , reason(r)
  19. , remote(rem)
  20. {
  21. ;
  22. }
  23. };
  24. } // namespace ix