code: def _convert_addrinfo(cls, results: List[tuple]) -> Iterable[AddressInfo]:
          '''Convert the result list to address info.'''
          for result in results:
              family = result[0]
              address = result[4]
              ip_address = address[0]
  
              if family == socket.AF_INET6:
                  flow_info = address[2]
                  control_id = address[3]
              else:
                  flow_info = None
                  control_id = None
  
              yield AddressInfo(ip_address, family, flow_info, control_idf _convert_addrinfo(cls, results: List[tuple]) -> Iterable[AddressInfo]:
          '''Convert the result list to address info.'''
          for result in results:
              family = result[0]
              address = result[4]
              ip_address = address[0]
  
              if family == socket.AF_INET6:
                  flow_info = address[2]
                  control_id = address[3]
              else:
                  flow_info = None
                  control_id = None
  
              yield AddressInfo(ip_address, family, flow_info, control_id)
docs: Convert the result list to address info.