+ ping()
clarified ping() to check self.up and raise if server not found
-1 magic value added for socket errors