Loading src/windows/tcp.cpp +2 −2 Changes for src/windows/tcp.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -220,7 +220,7 @@ size_t netplus::tcp::sendData(buffer &data,int flags){ << " ErrorMsg: " << lerror; throw exception; } return (size_t)dwsend; return (size_t)dwsend != 0 ? dwsend : data.size; } size_t netplus::tcp::recvData(buffer &data,int flags){ Loading Loading @@ -252,7 +252,7 @@ size_t netplus::tcp::recvData(buffer &data,int flags){ throw exception; } return (size_t)dwBytes; return (size_t)dwBytes != 0 ? dwBytes : data.size; } void netplus::tcp::connect(socket *ssock){ Loading src/windows/udp.cpp +2 −2 Changes for src/windows/udp.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -214,7 +214,7 @@ size_t netplus::udp::sendData(buffer &data, int flags) { << " ErrorMsg: " << GetLastError(); throw exception; } return (size_t)rval; return (size_t)dwBytes != 0 ? dwBytes : data.size; } size_t netplus::udp::recvData(buffer &data, int flags) { Loading Loading @@ -246,7 +246,7 @@ size_t netplus::udp::recvData(buffer &data, int flags) { << " ErrorMsg: " << GetLastError(); throw exception; } return (size_t)recvsize; return (size_t)dwBytes != 0 ? dwBytes : data.size; } void netplus::udp::connect(socket* ssock) { NetException exception; Loading Loading
src/windows/tcp.cpp +2 −2 Changes for src/windows/tcp.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -220,7 +220,7 @@ size_t netplus::tcp::sendData(buffer &data,int flags){ << " ErrorMsg: " << lerror; throw exception; } return (size_t)dwsend; return (size_t)dwsend != 0 ? dwsend : data.size; } size_t netplus::tcp::recvData(buffer &data,int flags){ Loading Loading @@ -252,7 +252,7 @@ size_t netplus::tcp::recvData(buffer &data,int flags){ throw exception; } return (size_t)dwBytes; return (size_t)dwBytes != 0 ? dwBytes : data.size; } void netplus::tcp::connect(socket *ssock){ Loading
src/windows/udp.cpp +2 −2 Changes for src/windows/udp.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -214,7 +214,7 @@ size_t netplus::udp::sendData(buffer &data, int flags) { << " ErrorMsg: " << GetLastError(); throw exception; } return (size_t)rval; return (size_t)dwBytes != 0 ? dwBytes : data.size; } size_t netplus::udp::recvData(buffer &data, int flags) { Loading Loading @@ -246,7 +246,7 @@ size_t netplus::udp::recvData(buffer &data, int flags) { << " ErrorMsg: " << GetLastError(); throw exception; } return (size_t)recvsize; return (size_t)dwBytes != 0 ? dwBytes : data.size; } void netplus::udp::connect(socket* ssock) { NetException exception; Loading