Manage DoIP connection lifecycle and reconnection
mainWhen performing operations that cause an ECU to reset (such as ecu_reset), the DoIP socket may need to be reactivated. You can manually call doip_client.reconnect() after the ECU has finished restarting. Alternatively, you can use the auto_reconnect_tcp flag on the DoIPClient to handle this automatically.
Note: ECUs do not restart instantly; you may need to implement a sleep() before attempting to reconnect or send further commands.