cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
#include <HttpWsAdaptor.hpp>
Public 成员函数 | |
void | FromJsonFile (const std::string &path) |
从JSON文件中读取配置 更多... | |
void | FromTOMLFile (const std::string &path) |
从TOML文件中读取配置 更多... | |
Public 属性 | |
std::string | HttpUrl = "http://localhost:8080" |
Http adapter地址 更多... | |
std::chrono::milliseconds | ConnectionTimeout = std::chrono::seconds(30) |
连接超时时间 更多... | |
std::chrono::milliseconds | ReadTimeout = std::chrono::seconds(5) |
读取超时时间 更多... | |
std::chrono::milliseconds | WriteTimeout = std::chrono::seconds(5) |
写入超时时间 更多... | |
std::string | WebsocketUrl = "ws://localhost:8080" |
Websocket adapter地址 更多... | |
std::chrono::seconds | HeartbeatInterval = std::chrono::seconds(60) |
心跳信息间隔 更多... | |
std::chrono::seconds | HandshakeTimeout = std::chrono::seconds(60) |
握手超时时间 更多... | |
bool | EnablePong = true |
开启自动回复ping 更多... | |
bool | EnableDeflate |
开启数据压缩 更多... | |
bool | AutoReconnect = true |
开启自动重连 更多... | |
std::chrono::milliseconds | MinRetryInterval = std::chrono::seconds(1) |
最小重连时间间隔 更多... | |
std::chrono::milliseconds | MaxRetryInterval = std::chrono::seconds(30) |
最大重连时间间隔 更多... | |
QQ_t | BotQQ = 12345_qq |
BotQQ 更多... | |
std::string | VerifyKey = "" |
验证密钥 更多... | |
在文件 HttpWsAdaptor.hpp 第 27 行定义.
void Mirai::HttpWsAdaptorConfig::FromJsonFile | ( | const std::string & | path | ) |
从JSON文件中读取配置
void Mirai::HttpWsAdaptorConfig::FromTOMLFile | ( | const std::string & | path | ) |
从TOML文件中读取配置
std::string Mirai::HttpWsAdaptorConfig::HttpUrl = "http://localhost:8080" |
Http adapter地址
在文件 HttpWsAdaptor.hpp 第 30 行定义.
std::chrono::milliseconds Mirai::HttpWsAdaptorConfig::ConnectionTimeout = std::chrono::seconds(30) |
连接超时时间
在文件 HttpWsAdaptor.hpp 第 32 行定义.
std::chrono::milliseconds Mirai::HttpWsAdaptorConfig::ReadTimeout = std::chrono::seconds(5) |
读取超时时间
在文件 HttpWsAdaptor.hpp 第 34 行定义.
std::chrono::milliseconds Mirai::HttpWsAdaptorConfig::WriteTimeout = std::chrono::seconds(5) |
写入超时时间
在文件 HttpWsAdaptor.hpp 第 36 行定义.
std::string Mirai::HttpWsAdaptorConfig::WebsocketUrl = "ws://localhost:8080" |
Websocket adapter地址
在文件 HttpWsAdaptor.hpp 第 39 行定义.
std::chrono::seconds Mirai::HttpWsAdaptorConfig::HeartbeatInterval = std::chrono::seconds(60) |
心跳信息间隔
在文件 HttpWsAdaptor.hpp 第 41 行定义.
std::chrono::seconds Mirai::HttpWsAdaptorConfig::HandshakeTimeout = std::chrono::seconds(60) |
握手超时时间
在文件 HttpWsAdaptor.hpp 第 43 行定义.
bool Mirai::HttpWsAdaptorConfig::EnablePong = true |
开启自动回复ping
在文件 HttpWsAdaptor.hpp 第 45 行定义.
bool Mirai::HttpWsAdaptorConfig::EnableDeflate |
bool Mirai::HttpWsAdaptorConfig::AutoReconnect = true |
开启自动重连
在文件 HttpWsAdaptor.hpp 第 55 行定义.
std::chrono::milliseconds Mirai::HttpWsAdaptorConfig::MinRetryInterval = std::chrono::seconds(1) |
最小重连时间间隔
在文件 HttpWsAdaptor.hpp 第 57 行定义.
std::chrono::milliseconds Mirai::HttpWsAdaptorConfig::MaxRetryInterval = std::chrono::seconds(30) |
最大重连时间间隔
在文件 HttpWsAdaptor.hpp 第 59 行定义.
QQ_t Mirai::HttpWsAdaptorConfig::BotQQ = 12345_qq |
BotQQ
在文件 HttpWsAdaptor.hpp 第 62 行定义.
std::string Mirai::HttpWsAdaptorConfig::VerifyKey = "" |
验证密钥
在文件 HttpWsAdaptor.hpp 第 64 行定义.