Lines Matching defs:portlist
118 char *portlist[PORT_MAX+1];
538 /* Construct the portlist[] array. */
541 /* Cycle through portlist, connecting to each port. */
542 for (i = 0; portlist[i] != NULL; i++) {
547 s = socks_connect(host, portlist[i], hints,
551 s = remote_connect(host, portlist[i], hints);
571 ntohs(atoi(portlist[i])),
577 "succeeded!\n", host, portlist[i],
1202 * Build an array of ports in portlist[], listing each port
1233 portlist[x] = calloc(1, PORT_MAX_LEN);
1234 if (portlist[x] == NULL)
1236 snprintf(portlist[x], PORT_MAX_LEN, "%d", cp);
1247 c = portlist[x];
1248 portlist[x] = portlist[y];
1249 portlist[y] = c;
1256 portlist[0] = strdup(p);
1257 if (portlist[0] == NULL)