c'est du code python, l'adresse laisse croire qu'il s'agit d'un autre langage
extrait
By TCP rules, the only way for a server program to know if a client has disconnected,
is to try to read from the socket. Specifically, if select() says there is data, but
recv() returns 0 bytes of data, then this implies the client has disconnected
[^] # un lien intéressant
Posté par palm123 (site web personnel) . En réponse au message Reconnecter une socket. Évalué à 2.
extrait
By TCP rules, the only way for a server program to know if a client has disconnected,
is to try to read from the socket. Specifically, if select() says there is data, but
recv() returns 0 bytes of data, then this implies the client has disconnected
http://www.perlmonks.org/?node_id=760710
ウィズコロナ