MCPcopy Create free account
hub / github.com/acl-dev/acl / main

Function main

lib_acl_cpp/samples/http_request2/main.cpp:82–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82int main(int argc, char* argv[])
83{
84 int ch;
85 string server_addr("127.0.0.1:8888");
86 string domain("test.com");
87 string url("/");
88 string stype("html"), charset("gb2312");
89
90 while ((ch = getopt(argc, argv, "hs:H:U:")) > 0)
91 {
92 switch (ch)
93 {
94 case 'h':
95 usage(argv[0]);
96 return 0;
97 case 's':
98 server_addr = optarg;
99 break;
100 case 'H':
101 domain = optarg;
102 break;
103 case 'U':
104 url = optarg;
105 break;
106 default:
107 usage(argv[0]);
108 return 0;
109 }
110 }
111
112 // ��ʼ����
113 log::stdout_open(true);
114 http_request_test test(server_addr, domain, url, stype, charset);
115 test.run();
116
117 return 0;
118}
119

Callers

nothing calls this directly

Calls 3

usageFunction · 0.70
getoptFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…