Lines Matching +defs:msg +defs:name
20 * 4. Neither the name of the University nor the names of its contributors
62 static int do_protocol(const char *name, const struct addrinfo *ai);
66 netfinger(char *name)
73 host = strrchr(name, '@');
102 error = do_protocol(name, ai);
111 do_protocol(const char *name, const struct addrinfo *ai)
117 struct msghdr msg;
128 msg.msg_name = (void *)ai->ai_addr;
129 msg.msg_namelen = ai->ai_addrlen;
130 msg.msg_iov = iov;
131 msg.msg_iovlen = 0;
132 msg.msg_control = 0;
133 msg.msg_controllen = 0;
134 msg.msg_flags = 0;
138 iov[msg.msg_iovlen].iov_base = slash_w;
139 iov[msg.msg_iovlen++].iov_len = 3;
141 /* send the name followed by <CR><LF> */
142 iov[msg.msg_iovlen].iov_base = strdup(name);
143 iov[msg.msg_iovlen++].iov_len = strlen(name);
144 iov[msg.msg_iovlen].iov_base = neteol;
145 iov[msg.msg_iovlen++].iov_len = 2;
163 if (sendmsg(s, &msg, 0) < 0) {