code: def read(self, size=-1):
          
          if self.connected is None:
              return None
  
          # Extract requested amount of data from the read buffer.
          data = self._get_input(size)
  
          return data
docs: ! @brief Return bytes read from the connection.