Lines Matching refs:res0
691 struct addrinfo *res, *res0; in remote_connect() local
697 res0 = res; in remote_connect()
699 if ((s = socket(res0->ai_family, res0->ai_socktype, in remote_connect()
700 res0->ai_protocol)) < 0) in remote_connect()
714 ahints.ai_family = res0->ai_family; in remote_connect()
727 set_common_sockopts(s, res0->ai_family); in remote_connect()
729 if (timeout_connect(s, res0->ai_addr, res0->ai_addrlen) == 0) in remote_connect()
737 } while ((res0 = res0->ai_next) != NULL); in remote_connect()
789 struct addrinfo *res, *res0; in local_listen() local
806 res0 = res; in local_listen()
810 if ((s = socket(res0->ai_family, res0->ai_socktype, in local_listen()
811 res0->ai_protocol)) < 0) in local_listen()
829 set_common_sockopts(s, res0->ai_family); in local_listen()
831 if (bind(s, (struct sockaddr *)res0->ai_addr, in local_listen()
832 res0->ai_addrlen) == 0) in local_listen()
837 } while ((res0 = res0->ai_next) != NULL); in local_listen()