parameters: (self, max=None, min=1)
docstring: Start a read operation on the TLS connection.
  
          This function returns a generator which behaves similarly to
          read().  Successive invocations of the generator will return 0
          if it is waiting to read from the socket, 1 if it is waiting
          to write to the socket, or a string if the read operation has
          completed.
  
          @rtype: iterable
          @return: A generator; see above for details.
docstring_summary: Start a read operation on the TLS connection.
docstring_tokens: Start a read operation on the TLS connection .
function: def readAsync(self, max=None, min=1):
          """Start a read operation on the TLS connection.
  
          This function returns a generator which behaves similarly to
          read().  Successive invocations of the generator will return 0
          if it is waiting to read from the socket, 1 if it is waiting
          to write to the socket, or a string if the read operation has
          completed.
  
          @rtype: iterable
          @return: A generator; see above for details.
          """
          try:
              while len(self._readBuffer)<min and not self.closed:
                  try:
                      for result in self._getMsg(ContentType.application_data):
                          if result in (0,1):
                              yield result
                      applicationData = result
                      self._readBuffer += bytesToString(applicationData.write())
                  except TLSRemoteAlert, alert:
                      if alert.description != AlertDescription.close_notify:
                          raise
                  except TLSAbruptCloseError:
                      if not self.ignoreAbruptClose:
                          raise
                      else:
                          self._shutdown(True)
  
              if max == None:
                  max = len(self._readBuffer)
  
              returnStr = self._readBuffer[:max]
              self._readBuffer = self._readBuffer[max:]
              yield returnStr
          except:
              self._shutdown(False)
              raise
function_tokens: def readAsync ( self , max = None , min = 1 ) : try : while len ( self . _readBuffer ) < min and not self . closed : try : for result in self . _getMsg ( ContentType . application_data ) : if result in ( 0 , 1 ) : yield result applicationData = result self . _readBuffer += bytesToString ( applicationData . write ( ) ) except TLSRemoteAlert , alert : if alert . description != AlertDescription . close_notify : raise except TLSAbruptCloseError : if not self . ignoreAbruptClose : raise else : self . _shutdown ( True ) if max == None : max = len ( self . _readBuffer ) returnStr = self . _readBuffer [ : max ] self . _readBuffer = self . _readBuffer [ max : ] yield returnStr except : self . _shutdown ( False ) raise