1 /* Copyright (c) 2012. 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. */
6 #include "bittorrent.h"
11 * Bittorrent example launcher
13 int main(int argc, char *argv[])
15 MSG_init(&argc, argv);
17 /* Check the arguments */
19 printf("Usage: %s platform_file deployment_file \n", argv[0]);
23 const char *platform_file = argv[1];
24 const char *deployment_file = argv[2];
26 MSG_create_environment(platform_file);
28 MSG_function_register("tracker", tracker);
29 MSG_function_register("peer", peer);
31 MSG_launch_application(deployment_file);