blob: 848bc271096d944e76a7e7a20c1d9ef28a20b095 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/async-loop/cpp/loop.h>
#include <lib/fxl/command_line.h>
#include <lib/fxl/log_settings_command_line.h>
#include <lib/fxl/logging.h>
#include <iostream>
#include "runner.h"
using namespace netemul;
int main(int argc, const char** argv) {
auto command_line = fxl::CommandLineFromArgcArgv(argc, argv);
if (!fxl::SetLogSettingsFromCommandLine(command_line))
return 1;
async::Loop loop(&kAsyncLoopConfigNoAttachToThread);
async_set_default_dispatcher(loop.dispatcher());
FXL_LOG(INFO) << "Starting netemul runner";
Runner r(loop.dispatcher());
loop.Run();
return 0;
}