|
Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
|
#include <cstdint>#include <string>#include <vector>#include <utility>#include <ostream>#include <sstream>#include <iostream>#include <boost/asio.hpp>#include "shared/game/event.hpp"#include "shared/network/constants.hpp"#include "shared/utilities/typedefs.hpp"#include "shared/utilities/serialize_macro.hpp"#include "shared/utilities/serialize.hpp"Go to the source code of this file.
Data Structures | |
| struct | PacketHeader |
| struct | ServerLobbyBroadcastPacket |
| struct | ClientDeclareInfoPacket |
| struct | ServerAssignEIDPacket |
| struct | EventPacket |
| class | PackagedPacket |
Enumerations | |
| enum class | PacketType : uint16_t { ServerLobbyBroadcast = 0 , ClientDeclareInfo , ServerAssignEID , Event = 2000 } |
|
strong |
Enumeration for all of the different packet types that can be sent.
Server or Client prefix specifies which side sends that type of packet
Note: you need to update the below function validateType whenever you add a new packet type!
| Enumerator | |
|---|---|
| ServerLobbyBroadcast | Sent by the server via UDP broadcast saying it has a server open. |
| ClientDeclareInfo | Sent by the client after TCP handshake. |
| ServerAssignEID | Sent by the server after TCP handshake, giving client its EID. |
| Event | Client requesting server to perform specific input. |