Lines Matching refs:res0
550 struct addrinfo *res, *res0; in remote_connect() local
556 res0 = res; in remote_connect()
558 if ((s = socket(res0->ai_family, res0->ai_socktype, in remote_connect()
559 res0->ai_protocol)) < 0) { in remote_connect()
569 ahints.ai_family = res0->ai_family; in remote_connect()
594 if (connect(s, res0->ai_addr, res0->ai_addrlen) == 0) in remote_connect()
600 res0->ai_addr, res0->ai_addrlen, NI_NUMERICHOST), in remote_connect()
606 } while ((res0 = res0->ai_next) != NULL); in remote_connect()
621 struct addrinfo *res, *res0; in local_listen() local
631 res0 = res; in local_listen()
633 if ((s = socket(res0->ai_family, res0->ai_socktype, in local_listen()
634 res0->ai_protocol)) < 0) { in local_listen()
645 if (bind(s, (struct sockaddr *)res0->ai_addr, in local_listen()
646 res0->ai_addrlen) == 0) in local_listen()
651 } while ((res0 = res0->ai_next) != NULL); in local_listen()