Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 64) sorted by relevance

123

/libevent-2.1.12/sample/
H A Dhttps-client.c215 main(int argc, char **argv) in main() argument
241 if (!strcmp("-url", argv[i])) { in main()
243 url = argv[i + 1]; in main()
248 } else if (!strcmp("-crt", argv[i])) { in main()
250 crt = argv[i + 1]; in main()
257 } else if (!strcmp("-data", argv[i])) { in main()
259 data_file = argv[i + 1]; in main()
264 } else if (!strcmp("-retries", argv[i])) { in main()
266 retries = atoi(argv[i + 1]); in main()
273 timeout = atoi(argv[i + 1]); in main()
[all …]
H A Dle-proxy.c211 main(int argc, char **argv) in main() argument
230 if (!strcmp(argv[i], "-s")) { in main()
232 } else if (!strcmp(argv[i], "-W")) { in main()
234 } else if (argv[i][0] == '-') { in main()
245 if (evutil_parse_sockaddr_port(argv[i], in main()
247 int p = atoi(argv[i]); in main()
259 if (evutil_parse_sockaddr_port(argv[i+1], in main()
H A Dhttp-connect.c89 int main(int argc, const char **argv) in main() argument
103 printf("Usage: %s proxy url\n", argv[0]); in main()
107 proxy = uri_parse(argv[1]); in main()
108 location = uri_parse(argv[2]); in main()
H A Dhttp-server.c359 parse_opts(int argc, char **argv) in parse_opts() argument
366 while ((opt = getopt(argc, argv, "hp:U:uIv")) != -1) { in parse_opts()
373 case 'h': print_usage(stdout, argv[0], 0); break; in parse_opts()
379 print_usage(stdout, argv[0], 1); in parse_opts()
381 o.docroot = argv[optind]; in parse_opts()
446 main(int argc, char **argv) in main() argument
454 struct options o = parse_opts(argc, argv); in main()
/libevent-2.1.12/test/
H A Dbench_http.c85 main(int argc, char **argv) in main() argument
108 if (*argv[i] != '-') in main()
111 c = argv[i][1]; in main()
120 if (i+1 >= argc || !argv[i+1]) { in main()
124 port = (int)strtol(argv[i+1], &endptr, 10); in main()
131 if (i+1 >= argc || !argv[i+1]) { in main()
135 content_len = (size_t)strtol(argv[i+1], &endptr, 10); in main()
H A Dtest-ratelim.c581 handle_option(int argc, char **argv, int *i, const struct option *opt) in handle_option() argument
590 fprintf(stderr, "Too few arguments to '%s'\n",argv[*i]); in handle_option()
593 val = strtol(argv[*i+1], &endptr, 10); in handle_option()
594 if (*argv[*i+1] == '\0' || !endptr || *endptr != '\0') { in handle_option()
596 argv[*i+1]); in handle_option()
601 argv[*i+1]); in handle_option()
628 main(int argc, char **argv) in main() argument
648 if (!strcmp(argv[i],options[j].name)) { in main()
649 if (handle_option(argc,argv,&i,&options[j])<0) in main()
654 fprintf(stderr, "Unknown option '%s'\n", argv[i]); in main()
/libevent-2.1.12/test-export/
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]
H A Dtest-export.py19 script_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
22 if len(sys.argv) > 1 and sys.argv[1] == "static":
23 link_type = sys.argv[1]

123