cleanup / use a websocket instead of raw websockettransport

This commit is contained in:
Benjamin Sergeant
2018-12-30 22:00:49 -08:00
parent a6a43bd361
commit 7710bf793f
6 changed files with 116 additions and 97 deletions

View File

@ -10,7 +10,7 @@
#include "IXWebSocketTransport.h"
#include "IXWebSocketHttpHeaders.h"
#include "IXSocketConnect.h" // for configure, cleanup, move it back to Socket
#include "IXSocketConnect.h"
#include "IXSocket.h"
#ifdef IXWEBSOCKET_USE_TLS
@ -387,6 +387,9 @@ namespace ix
{
_requestInitCancellation = false;
// Set the socket to non blocking mode + other tweaks
SocketConnect::configure(fd);
_socket.reset();
_socket = std::make_shared<Socket>(fd);