mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
send I2NP messages through NTCP2
This commit is contained in:
parent
f38891cace
commit
b99f828583
3 changed files with 63 additions and 9 deletions
|
@ -199,6 +199,7 @@ namespace tunnel
|
|||
}
|
||||
// for NTCP2 only
|
||||
uint8_t * GetNTCP2Header () { return GetPayload () - I2NP_NTCP2_HEADER_SIZE; };
|
||||
size_t GetNTCP2Length () const { return GetPayloadLength () + I2NP_NTCP2_HEADER_SIZE; };
|
||||
void FromNTCP2 ()
|
||||
{
|
||||
const uint8_t * ntcp2 = GetNTCP2Header ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue