|
|
@ -22,7 +22,7 @@ namespace datagram |
|
|
|
|
|
|
|
|
|
|
|
void DatagramDestination::SendDatagramTo (const uint8_t * payload, size_t len, const i2p::data::IdentHash& ident, uint16_t fromPort, uint16_t toPort) |
|
|
|
void DatagramDestination::SendDatagramTo (const uint8_t * payload, size_t len, const i2p::data::IdentHash& ident, uint16_t fromPort, uint16_t toPort) |
|
|
|
{ |
|
|
|
{ |
|
|
|
auto owner = m_Owner.get(); |
|
|
|
auto owner = m_Owner; |
|
|
|
auto i = owner->GetIdentity(); |
|
|
|
auto i = owner->GetIdentity(); |
|
|
|
uint8_t buf[MAX_DATAGRAM_SIZE]; |
|
|
|
uint8_t buf[MAX_DATAGRAM_SIZE]; |
|
|
|
auto identityLen = i->ToBuffer (buf, MAX_DATAGRAM_SIZE); |
|
|
|
auto identityLen = i->ToBuffer (buf, MAX_DATAGRAM_SIZE); |
|
|
|