Loading src/windows/tcp.cpp +8 −4 Original line number Diff line number Diff line Loading @@ -165,13 +165,15 @@ void netplus::tcp::bind(){ size_t netplus::tcp::sendData(void* data, unsigned long size){ return sendData(data,size,0); return sendData(data,size,-1); } size_t netplus::tcp::sendData(void* data, unsigned long size,int flags){ NetException exception; if (flags < 0) flags = WSA_FLAG_OVERLAPPED; WSABUF buf; buf.buf = (char*)data; Loading @@ -196,13 +198,15 @@ size_t netplus::tcp::sendData(void* data, unsigned long size,int flags){ size_t netplus::tcp::recvData(void* data, unsigned long size){ return recvData(data,size,0); return recvData(data,size,-1); } size_t netplus::tcp::recvData(void* data, unsigned long size,int flags){ NetException exception; if (flags < 0) flags = WSA_FLAG_OVERLAPPED; WSABUF buf; buf.buf = (char*)data; Loading Loading
src/windows/tcp.cpp +8 −4 Original line number Diff line number Diff line Loading @@ -165,13 +165,15 @@ void netplus::tcp::bind(){ size_t netplus::tcp::sendData(void* data, unsigned long size){ return sendData(data,size,0); return sendData(data,size,-1); } size_t netplus::tcp::sendData(void* data, unsigned long size,int flags){ NetException exception; if (flags < 0) flags = WSA_FLAG_OVERLAPPED; WSABUF buf; buf.buf = (char*)data; Loading @@ -196,13 +198,15 @@ size_t netplus::tcp::sendData(void* data, unsigned long size,int flags){ size_t netplus::tcp::recvData(void* data, unsigned long size){ return recvData(data,size,0); return recvData(data,size,-1); } size_t netplus::tcp::recvData(void* data, unsigned long size,int flags){ NetException exception; if (flags < 0) flags = WSA_FLAG_OVERLAPPED; WSABUF buf; buf.buf = (char*)data; Loading