<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _connected(self, watcher, events):
 """Connector is successful, return the socket."""

        self.connected = True
        self._finish()
        self.deferred.callback(self.sock)