def ping(source, connection): """Sends out a message requesting a response from all other nodes in network""" message = "ping" universal = Address("*") route = Route(source, universal, universal) connection.open() connection.write(route.get_path() + message, route.dest) connection.close()