X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4bb60fefa54ed1665d3452e2a748d26904b46f37..613cd4ffa7ffbfdd4f21bf7ecb6053daf666b95e:/examples/msg/bittorrent/messages.h diff --git a/examples/msg/bittorrent/messages.h b/examples/msg/bittorrent/messages.h index 26a8c7a57a..dab23afb66 100644 --- a/examples/msg/bittorrent/messages.h +++ b/examples/msg/bittorrent/messages.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 @@ -52,46 +52,45 @@ typedef struct s_message { int index; int block_index; int block_length; - int stalled:1; } s_message_t, *message_t; /** * Builds a new value-less message */ msg_task_t task_message_new(e_message_type type, - const char *issuer_host_name, - const char *mailbox, int peer_id, int size); + const char *issuer_host_name, + const char *mailbox, int peer_id, int size); /** * Builds a new "have/piece" message */ msg_task_t task_message_index_new(e_message_type type, - const char *issuer_host_name, - const char *mailbox, int peer_id, - int index, int varsize); + const char *issuer_host_name, + const char *mailbox, int peer_id, + int index, int varsize); /** * Builds a new bitfield message */ msg_task_t task_message_bitfield_new(const char *issuer_host_name, - const char *mailbox, int peer_id, - char *bitfield, int bitfield_size); + const char *mailbox, int peer_id, + char *bitfield, int bitfield_size); /** * Builds a new "request" message */ msg_task_t task_message_request_new(const char *issuer_host_name, - const char *mailbox, int peer_id, - int index, int block_index, - int block_length); + const char *mailbox, int peer_id, + int index, int block_index, + int block_length); /** * Build a new "piece" message */ msg_task_t task_message_piece_new(const char *issuer_host_name, - const char *mailbox, int peer_id, int index, - int stalled, int block_index, - int block_length, int block_size); + const char *mailbox, int peer_id, int index, + int block_index, + int block_length, int block_size); /** * Free a message task */ void task_message_free(void *); int task_message_size(e_message_type type); -#endif /* BITTORRENT_MESSAGES_H_ */ +#endif /* BITTORRENT_MESSAGES_H_ */