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[]) {
14 MSG_init(&argc, argv);
16 /* Check the arguments */
18 printf("Usage: %s platform_file deployment_file \n",argv[0]);
22 const char *platform_file = argv[1];
23 const char *deployment_file = argv[2];
25 MSG_create_environment(platform_file);
27 MSG_function_register("tracker",tracker);
28 MSG_function_register("peer",peer);
30 MSG_launch_application(deployment_file);
32 msg_error_t res = MSG_main();