MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / StopLocalDestination

Method StopLocalDestination

libi2pd_client/SAM.cpp:1379–1387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1377 }
1378
1379 void SAMSingleSession::StopLocalDestination ()
1380 {
1381 localDestination->Release ();
1382 // stop accepting new streams
1383 localDestination->StopAcceptingStreams ();
1384 // terminate existing streams
1385 auto s = localDestination->GetStreamingDestination (); // TODO: take care about datagrams
1386 if (s) s->Stop ();
1387 }
1388
1389 void SAMMasterSession::Close ()
1390 {

Callers 1

CloseSessionMethod · 0.80

Calls 5

StopAcceptingStreamsMethod · 0.80
ReleaseMethod · 0.45
StopMethod · 0.45

Tested by

no test coverage detected