Popular recipes by Nicola Larosa http://code.activestate.com/recipes/users/98137/2004-09-16T18:52:39-07:00ActiveState Code RecipesPyHeartbeat - detecting inactive computers (Python) 2004-09-16T18:52:39-07:00Nicola Larosahttp://code.activestate.com/recipes/users/98137/http://code.activestate.com/recipes/52302-pyheartbeat-detecting-inactive-computers/ <p style="color: grey"> Python recipe 52302 by <a href="/recipes/users/98137/">Nicola Larosa</a> (<a href="/recipes/tags/network/">network</a>). Revision 6. </p> <p>PyHeartbeat detects inactive computers by sending and receveing "heartbeats" as UDP packets on the network, and keeping track of how much time passed since each known computer sent its last heartbeat. The concurrency in the server is implemented using threads first, and then again using the Twisted Matrix framework.</p>