X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0f123dd4d0d60d0c57bcae6f3629c83e32549b39..78938009bd128ac5fa7dde4450dad1600a34377f:/examples/msg/bittorrent/bittorrent.h diff --git a/examples/msg/bittorrent/bittorrent.h b/examples/msg/bittorrent/bittorrent.h index 7a81709744..01a80eee72 100644 --- a/examples/msg/bittorrent/bittorrent.h +++ b/examples/msg/bittorrent/bittorrent.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2012. The SimGrid Team. +/* Copyright (c) 2012-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -6,25 +6,11 @@ #ifndef BITTORRENT_BITTORRENT_H_ #define BITTORRENT_BITTORRENT_H_ -//TODO: Let users change this -/* - * File transfered data - */ -static int FILE_SIZE = 5120; -static int FILE_PIECE_SIZE = 512; -static int FILE_PIECES = 10; - -static int PIECES_BLOCKS = 5; -static int BLOCKS_REQUESTED = 2; -static int PIECE_COMM_SIZE = 1; /** - * Information message size + * Size of mailboxes */ -#define MESSAGE_SIZE 1 - - -#define MAILBOX_SIZE 40 /* Size of mailboxes */ +#define MAILBOX_SIZE 40 /** * Mailbox used to communicate with the tracker. */ @@ -67,4 +53,5 @@ static int PIECE_COMM_SIZE = 1; * Number of pieces the peer asks for simultaneously */ #define MAX_PIECES 1 -#endif /* BITTORRENT_BITTORRENT_H_ */ + +#endif /* BITTORRENT_BITTORRENT_H_ */