|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include "gateway/websocket.h"#include <openssl/evp.h>#include <array>#include <cstddef>#include <cstdint>#include <optional>#include <string>#include <string_view>#include <utility>#include <vector>#include "absl/status/status.h"#include "absl/status/statusor.h"#include "absl/strings/ascii.h"#include "absl/strings/escaping.h"#include "absl/strings/match.h"#include "absl/strings/str_cat.h"#include "absl/strings/str_split.h"#include "absl/strings/strip.h"Go to the source code of this file.
Namespaces | |
| namespace | nanommo |
Functions | |
| absl::StatusOr< Handshake > | nanommo::ParseHandshake (std::string_view request) |
| std::string | nanommo::AcceptKey (std::string_view key) |
| std::string | nanommo::Accept (std::string_view key) |
| The server's answer that switches the connection over to WebSocket. | |
| std::string | nanommo::Refuse (int status, std::string_view why) |
| An HTTP answer that turns the connection down, with why in its body. | |
| std::string | nanommo::ServerFrame (Opcode opcode, std::string_view payload) |
| A frame as the server sends it: whole, and never masked. | |
| std::string | nanommo::ClientFrame (Opcode opcode, std::string_view payload, uint32_t mask, bool fin) |