I am using python socket module for a TCP client/server set-up. I have a question: How can I send some sort of message to the client or server that the connection has been lost? and then: how can I get the connection back up again, knowing that the connection…