MCPcopy Create free account
hub / github.com/Snapchat/Valdi / onAcceptCompleted

Method onAcceptCompleted

valdi/src/valdi/runtime/Debugger/TCPServerImpl.cpp:209–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void 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
226void TCPServerImpl::listenNext() {
227 auto connection = Valdi::makeShared<TCPServerConnectionImpl>(this);

Callers 1

listenNextMethod · 0.95

Calls 4

failedMethod · 0.80
onReadyMethod · 0.80
loadMethod · 0.65
onClientConnectedMethod · 0.65

Tested by

no test coverage detected