1 /* Copyright (c) 2012-2019. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #include "bittorrent.h"
7 #include "bittorrent-peer.h"
9 #include <simgrid/msg.h>
11 /** Bittorrent example launcher */
12 int main(int argc, char* argv[])
14 MSG_init(&argc, argv);
16 /* Check the arguments */
17 xbt_assert(argc > 2, "Usage: %s platform_file deployment_file", argv[0]);
19 MSG_create_environment(argv[1]);
21 MSG_function_register("tracker", tracker);
22 MSG_function_register("peer", peer);
24 MSG_launch_application(argv[2]);