! @brief Return bytes read from the connection.

def read(self, size=-1):
        """! @brief Return bytes read from the connection."""
        if self.connected is None:
            return None

        # Extract requested amount of data from the read buffer.
        data = self._get_input(size)

        return data