diff options
| author | B3n30 <benediktthomas@gmail.com> | 2017-07-08 15:24:47 +0200 |
|---|---|---|
| committer | B3n30 <benediktthomas@gmail.com> | 2017-07-16 21:28:47 +0200 |
| commit | 898b372ba350f3246154ce8f8f606676ba38fc5f (patch) | |
| tree | b665a2ff519ddbfb7d3f6a035f076342d69c2148 /src/network/room.h | |
| parent | b6727d952738be2c439189b73af70105da6632e4 (diff) | |
Network: Threads for Room and RoomMember
Diffstat (limited to 'src/network/room.h')
| -rw-r--r-- | src/network/room.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/network/room.h b/src/network/room.h index 70c64d5f17..0a6217c11e 100644 --- a/src/network/room.h +++ b/src/network/room.h @@ -4,7 +4,6 @@ #pragma once -#include <atomic> #include <memory> #include <string> #include "common/common_types.h" @@ -19,6 +18,19 @@ struct RoomInformation { u32 member_slots; ///< Maximum number of members in this room }; +// The different types of messages that can be sent. The first byte of each packet defines the type +typedef uint8_t MessageID; +enum RoomMessageTypes { + IdJoinRequest = 1, + IdJoinSuccess, + IdRoomInformation, + IdSetGameName, + IdWifiPacket, + IdChatMessage, + IdNameCollision, + IdMacCollision +}; + /// This is what a server [person creating a server] would use. class Room final { public: |
