send I2NP messages through NTCP2

This commit is contained in:
orignal 2018-07-18 11:16:40 -04:00
parent f38891cace
commit b99f828583
3 changed files with 63 additions and 9 deletions

View file

@ -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 ();