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.

31 lines
705 B

4 months ago
  1. /*
  2. * IXWebSocketOpenInfo.h
  3. * Author: Benjamin Sergeant
  4. * Copyright (c) 2017-2019 Machine Zone, Inc. All rights reserved.
  5. */
  6. #pragma once
  7. #include "IXWebSocketHttpHeaders.h"
  8. #include <cstdint>
  9. #include <string>
  10. namespace ix
  11. {
  12. struct WebSocketOpenInfo
  13. {
  14. std::string uri;
  15. WebSocketHttpHeaders headers;
  16. std::string protocol;
  17. WebSocketOpenInfo(const std::string& u = std::string(),
  18. const WebSocketHttpHeaders& h = WebSocketHttpHeaders(),
  19. const std::string& p = std::string())
  20. : uri(u)
  21. , headers(h)
  22. , protocol(p)
  23. {
  24. ;
  25. }
  26. };
  27. } // namespace ix