mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
introduced ClientContext
This commit is contained in:
parent
18d6a2c70e
commit
89e5b56a19
13 changed files with 234 additions and 221 deletions
7
SAM.cpp
7
SAM.cpp
|
@ -6,6 +6,7 @@
|
|||
#include "Log.h"
|
||||
#include "NetDb.h"
|
||||
#include "Destination.h"
|
||||
#include "ClientContext.h"
|
||||
#include "SAM.h"
|
||||
|
||||
namespace i2p
|
||||
|
@ -331,7 +332,7 @@ namespace stream
|
|||
void SAMSocket::ProcessDestGenerate ()
|
||||
{
|
||||
LogPrint ("SAM dest generate");
|
||||
auto localDestination = CreateNewLocalDestination ();
|
||||
auto localDestination = i2p::client::CreateNewLocalDestination ();
|
||||
if (localDestination)
|
||||
{
|
||||
uint8_t buf[1024];
|
||||
|
@ -573,10 +574,10 @@ namespace stream
|
|||
i2p::data::PrivateKeys keys;
|
||||
keys.FromBuffer (buf, l);
|
||||
delete[] buf;
|
||||
localDestination = CreateNewLocalDestination (keys);
|
||||
localDestination = i2p::client::CreateNewLocalDestination (keys);
|
||||
}
|
||||
else // transient
|
||||
localDestination = CreateNewLocalDestination ();
|
||||
localDestination = i2p::client::CreateNewLocalDestination ();
|
||||
if (localDestination)
|
||||
{
|
||||
SAMSession session;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue