MCPcopy Create free account
hub / github.com/apple/foundationdb / ~UDPSimSocket

Method ~UDPSimSocket

fdbrpc/sim2.actor.cpp:2387–2393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2385 process->boundUDPSockets.emplace(localAddress, this);
2386 }
2387 ~UDPSimSocket() override {
2388 if (!closed.getFuture().isReady()) {
2389 close();
2390 closed.send(Void());
2391 }
2392 actors.clear(true);
2393 }
2394 void close() override {
2395 process->boundUDPSockets.erase(_localAddress);
2396 g_sim2.addressMap.erase(_localAddress);

Callers

nothing calls this directly

Calls 6

VoidClass · 0.70
clearMethod · 0.65
closeFunction · 0.50
isReadyMethod · 0.45
getFutureMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected