create datagram destination through SAM

This commit is contained in:
orignal 2014-10-22 16:42:26 -04:00
parent 78d8d34e3b
commit 4ae8c3c62c
4 changed files with 47 additions and 2 deletions

View file

@ -84,7 +84,8 @@ namespace client
delete m_LeaseSet;
delete m_Work;
delete m_Service;
delete m_StreamingDestination; // TODO
delete m_StreamingDestination;
delete m_DatagramDestination;
}
void ClientDestination::Run ()
@ -292,5 +293,11 @@ namespace client
return m_StreamingDestination->IsAcceptorSet ();
return false;
}
void ClientDestination::CreateDatagramDestination ()
{
if (!m_DatagramDestination)
m_DatagramDestination = new i2p::datagram::DatagramDestination (*this);
}
}
}