1. We are using the LTKCPP toolkit in a linux system and use it in NON
BLOCKING Mode. In this case, we get EWouldBlock errors and we would like
to ignore these errors. To achieve this, I suggest the following change:
In ltkcpp_base.h, add the following line as line 437 to EResultCode:
    RC_RecvIOEWouldBlockError,
In ltkcpp_connection.cpp, function recvAdvance(...), change the if
condition in line 1099 to:
if(0 > rc)
{
        /*
         * Error. Note this could be EWOULDBLOCK if the
         * file descriptor is using non-blocking I/O.
         * So we return the error but do not tear-up
         * the receiver state.
         */
#ifdef linux
        if (errno == EWOULDBLOCK)
#endif
#ifdef WIN32
        if (WSAGetLastError() == WSAEWOULDBLOCK)
#endif
        {
                pError->resultCodeAndWhatStr(RC_RecvIOEWouldBlockError,
                                        "recv IO EWouldBlock error");
        }
        else
        {
                pError->resultCodeAndWhatStr(RC_RecvIOError,
                                        "recv IO error");
        }
        break;
}

Let me know whether this is acceptable.


Thanks,

Arun



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel

Reply via email to