| 159 | } |
| 160 | |
| 161 | int main(int argc, const char **argv) |
| 162 | { |
| 163 | if (argc < 2) |
| 164 | { |
| 165 | ChannelFactory::Instance()->Init(1, "lo"); |
| 166 | } |
| 167 | else |
| 168 | { |
| 169 | ChannelFactory::Instance()->Init(0, argv[1]); |
| 170 | } |
| 171 | std::cout << "Press enter to start"; |
| 172 | std::cin.get(); |
| 173 | Custom custom; |
| 174 | custom.Init(); |
| 175 | |
| 176 | while (1) |
| 177 | { |
| 178 | sleep(10); |
| 179 | } |
| 180 | |
| 181 | return 0; |
| 182 | } |