def _connected(self, watcher, events):
        """Connector is successful, return the socket."""
        self.connected = True
        self._finish()
        self.deferred.callback(self.sock)
def _connected ( self , watcher , events ) : self . connected = True self . _finish ( ) self . deferred . callback ( self . sock )
Connector is successful, return the socket.