|
cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
连接错误事件 更多...
#include <MiraiClientEvents.hpp>
Public 属性 | |
| size_t | RetryCount = 0 |
| 当前重试次数 更多... | |
| double | WaitTime = 0 |
| 下一次重试前的等待时间(ms) 更多... | |
| int | HttpStatus = 0 |
| Http连接状态 更多... | |
| std::string | reason |
| 错误原因 更多... | |
| bool | DecompressionError = false |
| 是否为解压缩编码错误 更多... | |
额外继承的成员函数 | |
Public 成员函数 继承自 Mirai::IEvent< ClientConnectionErrorEvent > | |
| IEvent (const IEvent &)=default | |
| IEvent (IEvent &&)=default | |
| IEvent & | operator= (const IEvent &)=default |
| IEvent & | operator= (IEvent &&)=default |
| MiraiClient & | GetMiraiClient () const |
获取接收该事件的 MiraiClient 的引用 更多... | |
静态 Public 成员函数 继承自 Mirai::IEvent< ClientConnectionErrorEvent > | |
| static constexpr EventTypes | GetType () |
| 获取事件类型 更多... | |
Protected 成员函数 继承自 Mirai::IEvent< ClientConnectionErrorEvent > | |
| IEvent ()=default | |
| ~IEvent ()=default | |
连接错误事件
通常出现于网络问题导致的无法连接目标服务器。 连接建立后出现的错误将导致 ClientConnectionClosedEvent
在文件 MiraiClientEvents.hpp 第 60 行定义.
| size_t Mirai::ClientConnectionErrorEvent::RetryCount = 0 |
当前重试次数
在文件 MiraiClientEvents.hpp 第 63 行定义.
| double Mirai::ClientConnectionErrorEvent::WaitTime = 0 |
下一次重试前的等待时间(ms)
在文件 MiraiClientEvents.hpp 第 65 行定义.
| int Mirai::ClientConnectionErrorEvent::HttpStatus = 0 |
Http连接状态
在文件 MiraiClientEvents.hpp 第 67 行定义.
| std::string Mirai::ClientConnectionErrorEvent::reason |
错误原因
在文件 MiraiClientEvents.hpp 第 69 行定义.
| bool Mirai::ClientConnectionErrorEvent::DecompressionError = false |
是否为解压缩编码错误
在文件 MiraiClientEvents.hpp 第 71 行定义.