(Just barely) pass Autobahn tests chapter 1 - 10
This commit is contained in:
+7
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user