| 215 | } |
| 216 | |
| 217 | void Connection::sendQueuedData() |
| 218 | { |
| 219 | if (_outboundBuffer.empty()) |
| 220 | { |
| 221 | return; |
| 222 | } |
| 223 | |
| 224 | const auto bytesSent = socket->SendData(_outboundBuffer.data(), _outboundBuffer.size()); |
| 225 | |
| 226 | if (bytesSent > 0) |
| 227 | { |
| 228 | _outboundBuffer.erase(_outboundBuffer.begin(), _outboundBuffer.begin() + bytesSent); |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | bool Connection::receivedDataRecently() const noexcept |
| 233 | { |