Lines Matching +full:multi +full:- +full:socket
1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
36 #include <sys/socket.h>
58 int error, multi; in netfinger() local
80 multi = (ai0->ai_next) != 0; in netfinger()
83 if (ai0->ai_canonname == 0) in netfinger()
86 printf("[%s]\n", ai0->ai_canonname); in netfinger()
88 for (ai = ai0; ai != NULL; ai = ai->ai_next) { in netfinger()
89 if (multi) in netfinger()
111 s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in do_protocol()
113 warn("socket(%d, %d, %d)", ai->ai_family, ai->ai_socktype, in do_protocol()
114 ai->ai_protocol); in do_protocol()
115 return -1; in do_protocol()
118 msg.msg_name = (void *)ai->ai_addr; in do_protocol()
119 msg.msg_namelen = ai->ai_addrlen; in do_protocol()
126 /* -l flag for remote fingerd */ in do_protocol()
137 if (connect(s, ai->ai_addr, ai->ai_addrlen) < 0) { in do_protocol()
140 return -1; in do_protocol()
146 return -1; in do_protocol()
168 cnt - 1); in do_protocol()
172 if (lastc == '\r') /* ^M^M - skip dupes */ in do_protocol()
216 if (getnameinfo(ai->ai_addr, ai->ai_addrlen, buf, sizeof buf, in trying()