mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
use shared ClientDestination
This commit is contained in:
parent
789eb48698
commit
c7173d5e1c
6 changed files with 16 additions and 14 deletions
|
@ -14,7 +14,7 @@ namespace i2p
|
|||
{
|
||||
namespace client
|
||||
{
|
||||
class LeaseSetDestination;
|
||||
class ClientDestination;
|
||||
}
|
||||
namespace datagram
|
||||
{
|
||||
|
@ -25,7 +25,7 @@ namespace datagram
|
|||
|
||||
public:
|
||||
|
||||
DatagramDestination (std::shared_ptr<i2p::client::LeaseSetDestination> owner);
|
||||
DatagramDestination (std::shared_ptr<i2p::client::ClientDestination> owner);
|
||||
~DatagramDestination ();
|
||||
|
||||
void SendDatagramTo (const uint8_t * payload, size_t len, const i2p::data::IdentHash& ident, uint16_t fromPort = 0, uint16_t toPort = 0);
|
||||
|
@ -47,7 +47,7 @@ namespace datagram
|
|||
|
||||
private:
|
||||
|
||||
std::shared_ptr<i2p::client::LeaseSetDestination> m_Owner;
|
||||
std::shared_ptr<i2p::client::ClientDestination> m_Owner;
|
||||
Receiver m_Receiver; // default
|
||||
std::map<uint16_t, Receiver> m_ReceiversByPorts;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue