A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into vmtrace
[simgrid.git]
/
examples
/
msg
/
bittorrent
/
messages.h
diff --git
a/examples/msg/bittorrent/messages.h
b/examples/msg/bittorrent/messages.h
index
2a87b7c
..
8e29f04
100644
(file)
--- a/
examples/msg/bittorrent/messages.h
+++ b/
examples/msg/bittorrent/messages.h
@@
-10,6
+10,8
@@
/**
* Message sizes
/**
* Message sizes
+ * Sizes based on report by A. Legout et al, Understanding BitTorrent: An Experimental Perspective
+ * http://hal.inria.fr/inria-00000156/en
*/
#define MESSAGE_HANDSHAKE_SIZE 68
#define MESSAGE_CHOKE_SIZE 5
*/
#define MESSAGE_HANDSHAKE_SIZE 68
#define MESSAGE_CHOKE_SIZE 5
@@
-34,7
+36,8
@@
typedef enum {
MESSAGE_HAVE,
MESSAGE_BITFIELD,
MESSAGE_REQUEST,
MESSAGE_HAVE,
MESSAGE_BITFIELD,
MESSAGE_REQUEST,
- MESSAGE_PIECE
+ MESSAGE_PIECE,
+ MESSAGE_CANCEL
} e_message_type;
/**
} e_message_type;
/**