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

Function main

lib_acl_cpp/samples/http_upload/main.cpp:95–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95int main(int argc, char* argv[]) {
96 int ch;
97 acl::string server_addr("127.0.0.1:8888");
98 bool debug_mode = false;
99
100 std::vector<std::string> files;
101
102 while ((ch = getopt(argc, argv, "hs:f:D")) > 0) {
103 switch (ch) {
104 case 'h':
105 usage(argv[0]);
106 return 0;
107 case 'f':
108 files.push_back(optarg);
109 break;
110 case 'D':
111 debug_mode = true;
112 break;
113 default:
114 usage(argv[0]);
115 return 0;
116 }
117 }
118
119 // ����־�������Ļ
120 acl::log::stdout_open(true);
121
122 std::map<std::string, std::string> params;
123 params["name1"] = "value1";
124 params["name2"] = "value2";
125 params["name3"] = "value3";
126
127 // ��ʼ����
128 http_request_test request(server_addr, debug_mode);
129 request.run(files, params);
130 return 0;
131}
132

Callers

nothing calls this directly

Calls 4

usageFunction · 0.70
getoptFunction · 0.50
push_backMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…