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