Commit 56dfc575 authored by jan.koester's avatar jan.koester
Browse files

fixed

parent 2f13a59f
Loading
Loading
Loading
Loading
+2 −2
Changes for src/windows/tcp.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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){
@@ -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){
+2 −2
Changes for src/windows/udp.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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) {
@@ -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;