Not really a WIP question this, but does anyone know the recommended sequence of events for closing down a TCP client/server connection? Is it initiated by the server or the client ?
Scenario: My server occasionally needs/wants the (GPRS modem) clients to close their connections (for server update/maintenance), and I’m just not sure best/proper way to do it.
Given that the client(s) requests a connection on the server, should the client(s) then be the one responsible for closing the connection down (having been so instructed by the server), or can the server just throw them off ? Either can be made to work, but is there a preferred approach ?