Loading src/posix/tcp.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -195,7 +195,7 @@ size_t netplus::tcp::sendData(void* data, unsigned long size,int flags){ throw exception; } return rval; return (size_t) rval == 0 ? size : rval; } Loading Loading @@ -223,7 +223,7 @@ size_t netplus::tcp::recvData(void* data, unsigned long size,int flags){ << " ErrorMsg: " << errstr; throw exception; } return recvsize; return (size_t)recvsize == 0 ? size : recvsize; } void netplus::tcp::connect(socket *ssock){ Loading src/posix/udp.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -200,7 +200,7 @@ size_t netplus::udp::sendData(void* data, unsigned long size,int flags){ throw exception; } return rval; return (size_t) rval == 0 ? size : rval; } size_t netplus::udp::recvData(void* data, unsigned long size,int flags){ Loading @@ -225,7 +225,7 @@ size_t netplus::udp::recvData(void* data, unsigned long size,int flags){ << " ErrorMsg: " << errstr; throw exception; } return recvsize; return (size_t)recvsize == 0 ? size : recvsize; } void netplus::udp::connect(socket *ssock){ Loading src/windows/tcp.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -183,7 +183,7 @@ size_t netplus::tcp::sendData(void* data, unsigned long size,int flags){ << " ErrorMsg: " << lerror; throw exception; } return (size_t)rval; return (size_t) rval == 0 ? size : rval; } size_t netplus::tcp::recvData(void* data, unsigned long size,int flags){ Loading @@ -206,7 +206,7 @@ size_t netplus::tcp::recvData(void* data, unsigned long size,int flags){ throw exception; } return (size_t)recvsize; return (size_t) recvsize == 0 ? size : recvsize; } void netplus::tcp::connect(socket *ssock){ Loading src/windows/udp.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -174,7 +174,7 @@ size_t netplus::udp::sendData(void* data, unsigned long size, int flags) { << " ErrorMsg: " << GetLastError(); throw exception; } return (size_t)rval; return (size_t)rval == 0 ? size : rval; } size_t netplus::udp::recvData(void* data, unsigned long size, int flags) { Loading @@ -201,7 +201,7 @@ size_t netplus::udp::recvData(void* data, unsigned long size, int flags) { << " ErrorMsg: " << GetLastError(); throw exception; } return (size_t)recvsize; return (size_t)recvsize == 0 ? size : recvsize; } void netplus::udp::connect(socket* ssock) { NetException exception; Loading Loading
src/posix/tcp.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -195,7 +195,7 @@ size_t netplus::tcp::sendData(void* data, unsigned long size,int flags){ throw exception; } return rval; return (size_t) rval == 0 ? size : rval; } Loading Loading @@ -223,7 +223,7 @@ size_t netplus::tcp::recvData(void* data, unsigned long size,int flags){ << " ErrorMsg: " << errstr; throw exception; } return recvsize; return (size_t)recvsize == 0 ? size : recvsize; } void netplus::tcp::connect(socket *ssock){ Loading
src/posix/udp.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -200,7 +200,7 @@ size_t netplus::udp::sendData(void* data, unsigned long size,int flags){ throw exception; } return rval; return (size_t) rval == 0 ? size : rval; } size_t netplus::udp::recvData(void* data, unsigned long size,int flags){ Loading @@ -225,7 +225,7 @@ size_t netplus::udp::recvData(void* data, unsigned long size,int flags){ << " ErrorMsg: " << errstr; throw exception; } return recvsize; return (size_t)recvsize == 0 ? size : recvsize; } void netplus::udp::connect(socket *ssock){ Loading
src/windows/tcp.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -183,7 +183,7 @@ size_t netplus::tcp::sendData(void* data, unsigned long size,int flags){ << " ErrorMsg: " << lerror; throw exception; } return (size_t)rval; return (size_t) rval == 0 ? size : rval; } size_t netplus::tcp::recvData(void* data, unsigned long size,int flags){ Loading @@ -206,7 +206,7 @@ size_t netplus::tcp::recvData(void* data, unsigned long size,int flags){ throw exception; } return (size_t)recvsize; return (size_t) recvsize == 0 ? size : recvsize; } void netplus::tcp::connect(socket *ssock){ Loading
src/windows/udp.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -174,7 +174,7 @@ size_t netplus::udp::sendData(void* data, unsigned long size, int flags) { << " ErrorMsg: " << GetLastError(); throw exception; } return (size_t)rval; return (size_t)rval == 0 ? size : rval; } size_t netplus::udp::recvData(void* data, unsigned long size, int flags) { Loading @@ -201,7 +201,7 @@ size_t netplus::udp::recvData(void* data, unsigned long size, int flags) { << " ErrorMsg: " << GetLastError(); throw exception; } return (size_t)recvsize; return (size_t)recvsize == 0 ? size : recvsize; } void netplus::udp::connect(socket* ssock) { NetException exception; Loading