This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "websocket.h" | |
#include "../common/string-util.h" | |
bool ws_handshake_assemble(byte* buf, u_int len, std::string& request, u_int& readLen) | |
{ | |
if (len < 4) | |
return false; | |
//http head is end with an empty line | |
if ( buf[len-4] == '\r' |
NewerOlder