add new message type when receiving message fragments

This commit is contained in:
Benjamin Sergeant
2019-03-11 11:12:43 -07:00
parent 03abe77b5f
commit 892ea375e3
7 changed files with 23 additions and 4 deletions

View File

@ -31,7 +31,7 @@ int main(int argc, char** argv)
std::string data;
std::string headers;
std::string output;
std::string hostname;
std::string hostname("127.0.0.1");
bool headersOnly = false;
bool followRedirects = false;
bool verbose = false;

View File

@ -52,6 +52,10 @@ namespace ix
ss << "HTTP Status: " << error.http_status << std::endl;
std::cerr << ss.str();
}
else if (messageType == ix::WebSocket_MessageType_Fragment)
{
std::cerr << "Received message fragment" << std::endl;
}
else if (messageType == ix::WebSocket_MessageType_Message)
{
std::cerr << "Received " << wireSize << " bytes" << std::endl;

View File

@ -52,6 +52,10 @@ namespace ix
ss << "HTTP Status: " << error.http_status << std::endl;
std::cerr << ss.str();
}
else if (messageType == ix::WebSocket_MessageType_Fragment)
{
std::cerr << "Received message fragment" << std::endl;
}
else if (messageType == ix::WebSocket_MessageType_Message)
{
std::cerr << "Received " << wireSize << " bytes" << std::endl;