bolar_2 backup

This commit is contained in:
2026-11-27 16:38:11 +08:00
commit e96d6d19df
305 changed files with 43350 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#pragma once
#include <array>
#include <cstddef>
#include <cstdint>
namespace borla {
inline constexpr size_t kWebsocketHostCapacity = 128;
inline constexpr size_t kWebsocketPathCapacity = 384;
struct WebsocketUri {
bool secure = false;
uint16_t port = 0;
std::array<char, kWebsocketHostCapacity> host{};
std::array<char, kWebsocketPathCapacity> path{};
};
bool ParseWebsocketUri(const char* uri, WebsocketUri* output);
} // namespace borla