• From Michael Heimpold:
    Just a nitpick: the INADDR_* macros are defined in host byte order,
    compare INADDR_LOOPBACK. So it would be reasonable to wrap this with
    htonl(INADDR_ANY). However, every experienced socket programmer should
    know that INADDR_ANY equals 0.0.0.0, passing it through htonl does not
    have any effect.
    Stéphane Raimbault authored
     
    Browse File »


























  • The two modes are complementary, MODBUS_ERROR_RECOVERY_LINK handles
    errors at data link level (bad file descriptor, timeout, etc) and
    MODBUS_ERROR_RECOVERY_PROTOCOL checks Modbus error (eg. invalid
    function code or trame length).
    
    This change introduces the use of the Sleep function for Windows.
    Some duplicated code has been moved from backends to modbus core.
    A new debug message is now available when a flush occurs.
    
    The unit tests are now based on this error recovery code.
    Stéphane Raimbault authored
     
    Browse File »