Skip to content

Commit

Permalink
ClientDestination/LeaseSetDestination split
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed May 23, 2016
1 parent 89d2505 commit cb68d19
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 89 deletions.
2 changes: 1 addition & 1 deletion Datagram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace i2p
{
namespace datagram
{
DatagramDestination::DatagramDestination (std::shared_ptr<i2p::client::ClientDestination> owner):
DatagramDestination::DatagramDestination (std::shared_ptr<i2p::client::LeaseSetDestination> owner):
m_Owner (owner), m_Receiver (nullptr)
{
}
Expand Down
6 changes: 3 additions & 3 deletions Datagram.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace i2p
{
namespace client
{
class ClientDestination;
class LeaseSetDestination;
}
namespace datagram
{
Expand All @@ -25,7 +25,7 @@ namespace datagram

public:

DatagramDestination (std::shared_ptr<i2p::client::ClientDestination> owner);
DatagramDestination (std::shared_ptr<i2p::client::LeaseSetDestination> owner);
~DatagramDestination ();

void SendDatagramTo (const uint8_t * payload, size_t len, const i2p::data::IdentHash& ident, uint16_t fromPort = 0, uint16_t toPort = 0);
Expand All @@ -47,7 +47,7 @@ namespace datagram

private:

std::shared_ptr<i2p::client::ClientDestination> m_Owner;
std::shared_ptr<i2p::client::LeaseSetDestination> m_Owner;
Receiver m_Receiver; // default
std::map<uint16_t, Receiver> m_ReceiversByPorts;

Expand Down
Loading

0 comments on commit cb68d19

Please sign in to comment.