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

Method SAMSubSession

libi2pd_client/SAM.cpp:1397–1407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1395 }
1396
1397 SAMSubSession::SAMSubSession (std::shared_ptr<SAMMasterSession> master, std::string_view name, SAMSessionType type, uint16_t port):
1398 SAMSession (master->m_Bridge, name, type), masterSession (master), inPort (port)
1399 {
1400 if (Type == SAMSessionType::eSAMSessionTypeStream && port)
1401 {
1402 // additional streaming destination, use default if port is 0
1403 auto d = masterSession->GetLocalDestination ()->CreateStreamingDestination (inPort);
1404 if (d) d->Start ();
1405 }
1406 // TODO: implement datagrams
1407 }
1408
1409 std::shared_ptr<ClientDestination> SAMSubSession::GetLocalDestination ()
1410 {

Callers

nothing calls this directly

Calls 3

GetLocalDestinationMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected