26 lines
485 B
C
26 lines
485 B
C
|
/*
|
||
|
* IXWebSocketCloseInfo.h
|
||
|
* Author: Benjamin Sergeant
|
||
|
* Copyright (c) 2017-2019 Machine Zone, Inc. All rights reserved.
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
namespace ix
|
||
|
{
|
||
|
struct WebSocketCloseInfo
|
||
|
{
|
||
|
uint16_t code;
|
||
|
std::string reason;
|
||
|
bool remote;
|
||
|
|
||
|
WebSocketCloseInfo(uint16_t c = 0, const std::string& r = std::string(), bool rem = false)
|
||
|
: code(c)
|
||
|
, reason(r)
|
||
|
, remote(rem)
|
||
|
{
|
||
|
;
|
||
|
}
|
||
|
};
|
||
|
}
|