The modbus_tcp_accept function freezes, stands still. The debugger does not go to the next breakpoint. Steps to reproduce the behavior (commands or source code) void ExampleProgram::start() { std::cout << "ExampleProgram::start()" << std::endl; _ctx = modbus_new_tcp("127.0.0.1", ...
But if the default behaviour needs to be overridden, i.e., if you want "modbus_tcp_accept(ctx, modbus_socket)" to be non-blocking then make the "modbus_socket" non-blocking by setting the O_NONBLOCK flag. But in this case the call to "modbus_tcp_accept(ctx, modbus_socket)" will ...