Пример #1
0
int main()
{
    Gateway gate;

    auto cfg = GetConfig();
    if (cfg.empty()) {
        return 0;
    }

    try {
        gate.Run(cfg[0], cfg[1], atoi(cfg[2].c_str()));
    } catch (std::exception& e) {
        LOG("exception: %s", e.what());
    }
}