Lines Matching refs:port

81 	short port = -1;
87 port = 8080 + i;
92 if (port == -1)
102 *pport = port;
111 http_connect(const char *address, u_short port)
131 sin.sin_port = htons(port);
138 snprintf(strport, sizeof (strport), "%d", port);
312 short port = -1;
317 http = http_setup(&port, NULL);
320 if (evhttp_bind_socket(http, "127.0.0.1", port + 1) == -1) {
325 fd = http_connect("127.0.0.1", port);
348 /* connect to the second port */
352 fd = http_connect("127.0.0.1", port + 1);
412 short port = -1;
420 http = http_setup(&port, NULL);
422 evcon = evhttp_connection_new("127.0.0.1", port);
616 short port = -1;
623 http = http_setup(&port, NULL);
625 evcon = evhttp_connection_new("127.0.0.1", port);
677 short port = -1;
684 http = http_setup(&port, NULL);
686 evcon = evhttp_connection_new("127.0.0.1", port);
815 short port = -1;
820 http = http_setup(&port, NULL);
822 fd = http_connect("127.0.0.1", port);
906 short port = -1;
914 http = http_setup(&port, NULL);
919 evcon = evhttp_connection_new("127.0.0.1", port);
969 fprintf(stdout, "Testing HTTP Server with high port: ");
1082 short port = -1;
1095 http = http_setup(&port, base);
1097 fd = http_connect("127.0.0.1", port);
1273 short port = -1;
1282 http = http_setup(&port, NULL);
1284 fd = http_connect("127.0.0.1", port);
1318 evcon = evhttp_connection_new("127.0.0.1", port);
1359 short port = -1;
1364 http = http_setup(&port, NULL);
1366 fd = http_connect("127.0.0.1", port);
1414 short port = -1;
1421 http = http_setup(&port, NULL);
1423 evcon = evhttp_connection_new("127.0.0.1", port);