Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove old cruft.
[simgrid.git] / teshsuite / msg / app-bittorrent / bittorrent.c
1 /* Copyright (c) 2012-2019. The SimGrid Team. All rights reserved.          */
2
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. */
5
6 #include "bittorrent.h"
7 #include "bittorrent-peer.h"
8 #include "tracker.h"
9 #include <simgrid/msg.h>
10
11 /** Bittorrent example launcher */
12 int main(int argc, char* argv[])
13 {
14   MSG_init(&argc, argv);
15
16   /* Check the arguments */
17   xbt_assert(argc > 2, "Usage: %s platform_file deployment_file", argv[0]);
18
19   MSG_create_environment(argv[1]);
20
21   MSG_function_register("tracker", tracker);
22   MSG_function_register("peer", peer);
23
24   MSG_launch_application(argv[2]);
25
26   MSG_main();
27
28   return 0;
29 }