X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7a8cd62135619ad52e05ae1c929ef07e166e4260..9154df0a647fab4593f952d33a726c084d4cc0b5:/examples/msg/bittorrent/connection.c diff --git a/examples/msg/bittorrent/connection.c b/examples/msg/bittorrent/connection.c index d19d67c9a1..c0ee2a546a 100644 --- a/examples/msg/bittorrent/connection.c +++ b/examples/msg/bittorrent/connection.c @@ -1,8 +1,9 @@ - /* Copyright (c) 2012. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2012-2014. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ + #include "connection.h" #include "bittorrent.h" #include @@ -15,6 +16,7 @@ connection_t connection_new(int id) connection->id = id; connection->mailbox = bprintf("%d", id); connection->bitfield = NULL; + connection->current_piece = -1; connection->interested = 0; connection->am_interested = 0; connection->choked_upload = 1;