Lines Matching refs:portlist
128 char *portlist[PORT_MAX+1];
500 /* Construct the portlist[] array. */
503 /* Cycle through portlist, connecting to each port. */
504 for (i = 0; portlist[i] != NULL; i++) {
509 s = socks_connect(host, portlist[i], hints,
512 s = remote_connectx(host, portlist[i], hints);
514 s = remote_connect(host, portlist[i], hints);
534 ntohs(atoi(portlist[i])),
539 host, portlist[i], uflag ? "udp" : "tcp",
1007 * Build an array or ports in portlist[], listing each port
1040 portlist[x] = calloc(1, PORT_MAX_LEN);
1041 if (portlist[x] == NULL)
1043 snprintf(portlist[x], PORT_MAX_LEN, "%d", cp);
1054 c = portlist[x];
1055 portlist[x] = portlist[y];
1056 portlist[y] = c;
1063 portlist[0] = calloc(1, PORT_MAX_LEN);
1064 if (portlist[0] == NULL)
1066 strlcpy(portlist[0], p, PORT_MAX_LEN);