| 230 | } |
| 231 | |
| 232 | bool Connection::receivedDataRecently() const noexcept |
| 233 | { |
| 234 | constexpr auto kTimeoutMs = kNoDataTimeout * 1000; |
| 235 | |
| 236 | const auto timeSinceLastRecv = Platform::GetTicks() - _lastReceiveTime; |
| 237 | if (timeSinceLastRecv > kTimeoutMs) |
| 238 | { |
| 239 | return false; |
| 240 | } |
| 241 | |
| 242 | return true; |
| 243 | } |
| 244 | |
| 245 | const utf8* Connection::getLastDisconnectReason() const noexcept |
| 246 | { |
no test coverage detected