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

Function main

lib_acl_cpp/samples/http_request/main.cpp:167–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167int main(int argc, char* argv[])
168{
169 int ch;
170 acl::string server_addr("127.0.0.1:8888"), file("./xml.txt");
171 acl::string stype("xml"), charset("gb2312");
172
173 while ((ch = getopt(argc, argv, "hs:f:t:c:")) > 0)
174 {
175 switch (ch)
176 {
177 case 'h':
178 usage(argv[0]);
179 return 0;
180 case 'f':
181 file = optarg;
182 break;
183 case 't':
184 stype = optarg;
185 break;
186 case 'c':
187 charset = optarg;
188 break;
189 default:
190 usage(argv[0]);
191 return 0;
192 }
193 }
194
195 // ����־�������Ļ
196 acl::log::stdout_open(true);
197
198 // ��ʼ����
199 http_request_test request(server_addr, file, stype, charset);
200 request.run();
201
202 return 0;
203}
204

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…