support websocket frame fragments (binary data)

This commit is contained in:
lxsang
2016-12-13 16:34:03 +01:00
parent a720d8ff9c
commit 6d32fdfc3d
5 changed files with 118 additions and 6 deletions

View File

@ -35,6 +35,7 @@ int request_socket(const char* ip, int port)
perror("Socket");
return -1;
}
if (setsockopt (sockfd, SOL_SOCKET, SO_RCVTIMEO, &timeout,sizeof(timeout)) < 0)
perror("setsockopt failed\n");