X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b02538071ffda15d09efbe85f1459e2c4688f68d..22e6546d2c6f14864cc93c4ed1470d8e8c1e2d95:/examples/s4u/app-bittorrent/s4u-bittorrent.hpp?ds=sidebyside diff --git a/examples/s4u/app-bittorrent/s4u-bittorrent.hpp b/examples/s4u/app-bittorrent/s4u-bittorrent.hpp index a3b296a2af..61e64bda80 100644 --- 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. */ -typedef enum { +enum e_message_type { MESSAGE_HANDSHAKE, MESSAGE_CHOKE, MESSAGE_UNCHOKE, @@ -55,7 +55,7 @@ typedef enum { MESSAGE_REQUEST, MESSAGE_PIECE, MESSAGE_CANCEL -} e_message_type; +}; class Message { public: