Commit 1e1a429d authored by jan.koester's avatar jan.koester
Browse files

imported change

parent 4125dd2e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}


@@ -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){
+2 −2
Original line number Diff line number Diff line
@@ -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){
@@ -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){
+2 −2
Original line number Diff line number Diff line
@@ -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){
@@ -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){
+2 −2
Original line number Diff line number Diff line
@@ -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) {
@@ -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;