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

Function main

lib_acl_cpp/samples/beanstalk2/beanstalk.cpp:47–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47int main(int argc, char* argv[])
48{
49#if WIN32
50 acl::acl_cpp_init();
51#endif
52 acl::log::stdout_open(true);
53
54 snprintf(__addr, sizeof(__addr), "127.0.0.1:11300");
55 int ch;
56 while ((ch = getopt(argc, argv, "hs:n:")) > 0)
57 {
58 switch (ch)
59 {
60 case 'h':
61 usage(argv[0]);
62 return 0;
63 case 's':
64 snprintf(__addr, sizeof(__addr), "%s", optarg);
65 break;
66 case 'n':
67 __max = atoi(optarg);
68 if (__max <= 0)
69 __max = 1;
70 break;
71 default:
72 break;
73 }
74 }
75
76 consumer();
77
78#ifdef WIN32
79 printf("enter any key to exit\r\n");
80 getchar();
81#endif
82 return 0;
83}
84

Callers

nothing calls this directly

Calls 4

acl_cpp_initFunction · 0.85
usageFunction · 0.70
consumerFunction · 0.70
getoptFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…