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

Function main

lib_acl_cpp/samples/telnet/main.cpp:121–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121int main(int argc, char* argv[])
122{
123 int ch;
124
125 acl::acl_cpp_init();
126 acl::log::stdout_open(true);
127
128 snprintf(__server_addr, sizeof(__server_addr), "127.0.0.1:8088");
129 snprintf(__local_addr, sizeof(__local_addr), "0.0.0.0:18088");
130
131 while ((ch = getopt(argc, argv, "hs:l:o")) > 0) {
132 switch (ch) {
133 case 'h':
134 usage(argv[0]);
135 return 0;
136 case 's':
137 snprintf(__server_addr, sizeof(__server_addr), "%s", optarg);
138 break;
139 case 'l':
140 snprintf(__local_addr, sizeof(__local_addr), "%s", optarg);
141 break;
142 case 'o':
143 __server_fixed = false;
144 break;
145 default:
146 break;
147 }
148 }
149
150 ACL_EVENT* event = acl_event_new_select(1, 0);
151 run(event);
152
153 return 0;
154}

Callers

nothing calls this directly

Calls 5

acl_cpp_initFunction · 0.85
acl_event_new_selectFunction · 0.85
usageFunction · 0.70
runFunction · 0.70
getoptFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…