code: def connect(self):
          
          jobs = []
          self._socket.connect((self.host, self.port))
          try:
              jobs = [spawn(self._recv_loop), spawn(self._send_loop)]
              joinall(jobs)
          finally:
              killall(jobs)
docs: Connects the socket and spawns the send/receive loops.