Lines Matching refs:port
60 static int open_multicast_socket(const char *group, const char *port,
183 char address[NI_MAXHOST], port[NI_MAXSERV];
186 if (getnameinfo(raddr, rlen, address, sizeof(address), port,
187 sizeof(port), NI_NUMERICHOST | NI_NUMERICSERV) < 0)
189 printf("Received %d bytes from [%s]:%s.\n", n, address, port);
209 static int open_multicast_socket(const char *group, const char *port,
225 if ((err = getaddrinfo(group, port, &hints, &res)) != 0)
226 err_quit("getaddrinfo(%s, %s): %s", source, port, gai_strerror(err));
261 if ((err = getaddrinfo(source, port, &shints, &sai)) != 0)
262 err_quit("getaddrinfo(%s, %s): %s", source, port,
301 saddr.sin_port = htons(atoi(port));