Lines Matching full:res0
615 struct addrinfo *res, *res0; in remote_connect() local
624 res0 = res; in remote_connect()
626 if ((s = socket(res0->ai_family, res0->ai_socktype, in remote_connect()
627 res0->ai_protocol)) < 0) in remote_connect()
644 ahints.ai_family = res0->ai_family; in remote_connect()
657 set_common_sockopts(s, res0->ai_family); in remote_connect()
659 if (timeout_connect(s, res0->ai_addr, res0->ai_addrlen) == 0) in remote_connect()
667 } while ((res0 = res0->ai_next) != NULL); in remote_connect()
719 struct addrinfo *res, *res0; in local_listen() local
736 res0 = res; in local_listen()
738 if ((s = socket(res0->ai_family, res0->ai_socktype, in local_listen()
739 res0->ai_protocol)) < 0) in local_listen()
757 set_common_sockopts(s, res0->ai_family); in local_listen()
759 if (bind(s, (struct sockaddr *)res0->ai_addr, in local_listen()
760 res0->ai_addrlen) == 0) in local_listen()
765 } while ((res0 = res0->ai_next) != NULL); in local_listen()