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

Function main

lib_acl_cpp/samples/udp_client/main.cpp:96–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96int main(int argc, char* argv[])
97{
98 int ch;
99
100#ifdef WIN32
101 acl::acl_cpp_init();
102#endif
103 acl::log::stdout_open(true);
104
105 snprintf(__server_addr, sizeof(__server_addr), "127.0.0.1:8888");
106 snprintf(__local_addr, sizeof(__local_addr), "127.0.0.1:18888");
107
108 while ((ch = getopt(argc, argv, "hs:l:on:N:")) > 0)
109 {
110 switch (ch)
111 {
112 case 'h':
113 usage(argv[0]);
114 return 0;
115 case 's':
116 snprintf(__server_addr, sizeof(__server_addr), "%s", optarg);
117 break;
118 case 'l':
119 snprintf(__local_addr, sizeof(__local_addr), "%s", optarg);
120 break;
121 case 'o':
122 __server_fixed = false;
123 break;
124 case 'n':
125 __max_count = atoi(optarg);
126 break;
127 case 'N':
128 __dat_length = atoi(optarg);
129 break;
130 default:
131 break;
132 }
133 }
134
135 run();
136 return 0;
137}

Callers

nothing calls this directly

Calls 4

acl_cpp_initFunction · 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…