Use a length prefixed protocol to give the length of a pickled
        message.

def data(self, data):
        """Use a length prefixed protocol to give the length of a pickled
        message.

        """
        self._buffer = self._buffer + data

        while self._data_handler():
            pass