A map argument may be passed to asyncore.loop() asyncore.socket_map constains either a reference to the argument passed to asyncore.loop() or a global map object. asyncore.socket_map contains all the connections. You may also keep track of connections yourself by handling the callback functions asyncore.handle_accept() asyncore.handle_connect() aysncore.handle_close()