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

Method FindSession

libi2pd_client/SAM.cpp:1624–1631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1622 }
1623
1624 std::shared_ptr<SAMSession> SAMBridge::FindSession (std::string_view id) const
1625 {
1626 std::unique_lock<std::mutex> l(m_SessionsMutex);
1627 auto it = m_Sessions.find (id);
1628 if (it != m_Sessions.end ())
1629 return it->second;
1630 return nullptr;
1631 }
1632
1633 std::list<std::shared_ptr<SAMSocket> > SAMBridge::ListSockets(std::string_view id) const
1634 {

Callers 15

TerminateMethod · 0.45
ProcessSessionCreateMethod · 0.45
ProcessStreamConnectMethod · 0.45
ConnectMethod · 0.45
ProcessStreamAcceptMethod · 0.45
ProcessStreamForwardMethod · 0.45
ProcessDatagramSendMethod · 0.45
ProcessNamingLookupMethod · 0.45
ProcessSessionAddMethod · 0.45
ProcessSessionRemoveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected