2018-11-10 03:23:49 +01:00
|
|
|
/*
|
|
|
|
* IXWebSocketSendInfo.h
|
|
|
|
* Author: Benjamin Sergeant
|
|
|
|
* Copyright (c) 2018 Machine Zone, Inc. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
2018-11-15 00:52:28 +01:00
|
|
|
#include <iostream>
|
2018-11-10 03:23:49 +01:00
|
|
|
|
2019-02-21 03:59:07 +01:00
|
|
|
namespace ix
|
2018-11-10 03:23:49 +01:00
|
|
|
{
|
|
|
|
struct WebSocketSendInfo
|
|
|
|
{
|
|
|
|
bool success;
|
2018-11-15 00:52:28 +01:00
|
|
|
bool compressionError;
|
2018-11-10 03:23:49 +01:00
|
|
|
size_t payloadSize;
|
|
|
|
size_t wireSize;
|
|
|
|
|
2018-11-15 00:52:28 +01:00
|
|
|
WebSocketSendInfo(bool s = false, bool c = false,
|
|
|
|
size_t p = 0, size_t w = 0)
|
2018-12-06 17:27:28 +01:00
|
|
|
: success(s)
|
|
|
|
, compressionError(c)
|
|
|
|
, payloadSize(p)
|
|
|
|
, wireSize(w)
|
2018-11-10 03:23:49 +01:00
|
|
|
{
|
2018-12-06 17:27:28 +01:00
|
|
|
;
|
2018-11-10 03:23:49 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|