1 /* Copyright (c) 2012-2019. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #include "s4u-bittorrent.hpp"
8 #include "s4u-peer.hpp"
9 #include "s4u-tracker.hpp"
11 std::default_random_engine generator;
13 int main(int argc, char* argv[])
15 simgrid::s4u::Engine e(&argc, argv);
17 /* Check the arguments */
18 xbt_assert(argc > 2, "Usage: %s platform_file deployment_file", argv[0]);
20 e.load_platform(argv[1]);
22 e.register_actor<Tracker>("tracker");
23 e.register_actor<Peer>("peer");
24 e.load_deployment(argv[2]);