(Just barely) pass Autobahn tests chapter 1 - 10

This commit is contained in:
Alex Hultman
2018-11-21 22:46:17 +01:00
parent 8bf87c9147
commit 91620c6c42
6 changed files with 202 additions and 35 deletions
+7 -1
View File
@@ -4,12 +4,18 @@
#include "WebSocketProtocol.h"
#include "AsyncSocketData.h"
#include <string>
namespace uWS {
// take care with get_ext here !
struct WebSocketData : AsyncSocketData<false>, WebSocketState<true> {
template <bool, bool> friend struct WebSocketContext;
template <bool, bool> friend struct WebSocket;
private:
std::string fragmentBuffer;
int controlTipLength = 0;
bool isShuttingDown = 0;
public:
WebSocketData() : WebSocketState<true>() {
std::cout << "init websocket data!" << std::endl;