|
group2 0.1.0
CSE 125 Group 2
|
Text-chat packet helpers. More...
#include "ChatProtocol.hpp"#include "network/PacketType.hpp"#include <algorithm>#include <utility>Namespaces | |
| namespace | net |
| namespace | net::chat |
Functions | |
| bool | net::chat::isValidUtf8 (std::string_view text) noexcept |
| std::string | net::chat::sanitizeUtf8 (std::string_view text) |
| std::vector< std::uint8_t > | net::chat::encodeClientText (std::uint16_t clientSeq, std::string_view text) |
| std::vector< std::uint8_t > | net::chat::encodeServerText (ClientId sender, std::uint32_t serverSeq, std::string_view text) |
| std::optional< ClientTextChat > | net::chat::decodeClientText (std::span< const std::uint8_t > payload) |
| std::optional< ServerTextChat > | net::chat::decodeServerText (std::span< const std::uint8_t > payload) |
Text-chat packet helpers.