| 45 | } |
| 46 | |
| 47 | int 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…