Added method to ping all open sockets