Skip to content
API Documentation
BastionGuard™
Wire.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  bsc
namespace  bsc::proto
namespace  bsc::proto::msg

Functions

std::string bsc::proto::resolve_socket_path (std::string uri)
void bsc::proto::frame_encode (std::string_view payload, std::vector< std::uint8_t > &out)
std::int64_t bsc::proto::frame_peek_length (const std::uint8_t *buf, std::size_t len)

Variables

constexpr const char * bsc::proto::kDefaultSocketPath = "/tmp/bsd-daemon.sock"
constexpr std::string_view bsc::proto::msg::kHello = "hello"
constexpr std::string_view bsc::proto::msg::kPing = "ping"
constexpr std::string_view bsc::proto::msg::kPong = "pong"
constexpr std::string_view bsc::proto::msg::kAskRule = "ask_rule"
constexpr std::string_view bsc::proto::msg::kAskRuleReply = "ask_rule_reply"
constexpr std::string_view bsc::proto::msg::kAlert = "alert"
constexpr std::string_view bsc::proto::msg::kNotification = "notification"
constexpr std::size_t bsc::proto::kMaxFrameSize = 4u * 1024u * 1024u