Lines Matching full:port
49 static void inet_setport(struct addrinfo *e, int port)
57 i6->sin6_port = htons(port);
61 i4->sin_port = htons(port);
86 fprintf(stderr,"%s: getaddrinfo: family %s, host %s, port %s\n",
96 char port[33];
111 if (1 != sscanf(str,":%32[^,]%n",port,&pos)) {
118 if (2 != sscanf(str,"[%64[^]]]:%32[^,]%n",addr,port,&pos)) {
126 if (2 != sscanf(str,"%64[0-9.]:%32[^,]%n",addr,port,&pos)) {
134 if (2 != sscanf(str,"%64[^:]:%32[^,]%n",addr,port,&pos)) {
152 snprintf(port, sizeof(port), "%d", atoi(port) + port_offset);
153 rc = getaddrinfo(strlen(addr) ? addr : NULL, port, &ai, &res);
156 addr, port, gai_strerror(rc));
231 char port[33];
244 if (2 != sscanf(str,"[%64[^]]]:%32[^,]",addr,port)) {
252 if (2 != sscanf(str,"%64[0-9.]:%32[^,]",addr,port)) {
260 if (2 != sscanf(str,"%64[^:]:%32[^,]",addr,port)) {
274 if (0 != (rc = getaddrinfo(addr, port, &ai, &res))) {
276 addr, port);