| 207 | } |
| 208 | |
| 209 | void TCPServerImpl::onAcceptCompleted(const Ref<TCPServerConnectionImpl>& client, |
| 210 | const boost::system::error_code& errorCode) { |
| 211 | if (!_started.load()) { |
| 212 | return; |
| 213 | } |
| 214 | |
| 215 | listenNext(); |
| 216 | if (errorCode.failed()) { |
| 217 | return; |
| 218 | } |
| 219 | |
| 220 | appendConnection(client); |
| 221 | client->onReady(); |
| 222 | |
| 223 | _listener->onClientConnected(client); |
| 224 | } |
| 225 | |
| 226 | void TCPServerImpl::listenNext() { |
| 227 | auto connection = Valdi::makeShared<TCPServerConnectionImpl>(this); |
no test coverage detected