Lines Matching refs:portlist
115 char *portlist[PORT_MAX+1];
515 /* Construct the portlist[] array. */
518 /* Cycle through portlist, connecting to each port. */
519 for (i = 0; portlist[i] != NULL; i++) {
524 s = socks_connect(host, portlist[i], hints,
528 s = remote_connect(host, portlist[i], hints);
548 ntohs(atoi(portlist[i])),
554 "succeeded!\n", host, portlist[i],
1150 * Build an array of ports in portlist[], listing each port
1181 portlist[x] = calloc(1, PORT_MAX_LEN);
1182 if (portlist[x] == NULL)
1184 snprintf(portlist[x], PORT_MAX_LEN, "%d", cp);
1195 c = portlist[x];
1196 portlist[x] = portlist[y];
1197 portlist[y] = c;
1204 portlist[0] = strdup(p);
1205 if (portlist[0] == NULL)