IXWebSocket/ixwebsocket/IXWebSocketSendInfo.h

28 lines
557 B
C
Raw Permalink Normal View History

/*
* IXWebSocketSendInfo.h
* Author: Benjamin Sergeant
* Copyright (c) 2018 Machine Zone, Inc. All rights reserved.
*/
#pragma once
namespace ix
{
struct WebSocketSendInfo
{
bool success;
2018-11-15 00:52:28 +01:00
bool compressionError;
size_t payloadSize;
size_t wireSize;
2019-05-30 17:46:50 +02:00
WebSocketSendInfo(bool s = false, bool c = false, size_t p = 0, size_t w = 0)
: success(s)
, compressionError(c)
, payloadSize(p)
, wireSize(w)
{
;
}
};
2019-05-30 17:46:50 +02:00
} // namespace ix