Connects the socket and spawns the send/receive loops.

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