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 actor-priority
[simgrid.git]
/
examples
/
s4u
/
app-bittorrent
/
s4u-bittorrent.hpp
diff --git
a/examples/s4u/app-bittorrent/s4u-bittorrent.hpp
b/examples/s4u/app-bittorrent/s4u-bittorrent.hpp
index
a3b296a
..
61e64bd
100644
(file)
--- a/
examples/s4u/app-bittorrent/s4u-bittorrent.hpp
+++ b/
examples/s4u/app-bittorrent/s4u-bittorrent.hpp
@@
-44,7
+44,7
@@
#define MESSAGE_CANCEL_SIZE 17
/** Types of messages exchanged between two peers. */
#define MESSAGE_CANCEL_SIZE 17
/** Types of messages exchanged between two peers. */
-
typedef enum
{
+
enum e_message_type
{
MESSAGE_HANDSHAKE,
MESSAGE_CHOKE,
MESSAGE_UNCHOKE,
MESSAGE_HANDSHAKE,
MESSAGE_CHOKE,
MESSAGE_UNCHOKE,
@@
-55,7
+55,7
@@
typedef enum {
MESSAGE_REQUEST,
MESSAGE_PIECE,
MESSAGE_CANCEL
MESSAGE_REQUEST,
MESSAGE_PIECE,
MESSAGE_CANCEL
-}
e_message_type
;
+};
class Message {
public:
class Message {
public: