Skip to content

Commit

Permalink
moved HandleI2NPMessage to GarlicDestination level
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Oct 12, 2014
1 parent 202109e commit 22937e1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Destination.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ namespace stream
const i2p::data::PrivateKeys& GetPrivateKeys () const { return m_Keys; };
const uint8_t * GetEncryptionPrivateKey () const { return m_EncryptionPrivateKey; };
const uint8_t * GetEncryptionPublicKey () const { return m_EncryptionPublicKey; };
void HandleI2NPMessage (const uint8_t * buf, size_t len);

// implements GarlicDestination
const i2p::data::LeaseSet * GetLeaseSet ();
void HandleI2NPMessage (const uint8_t * buf, size_t len);

// override GarlicDestination
void ProcessGarlicMessage (I2NPMessage * msg);
Expand Down
5 changes: 3 additions & 2 deletions Garlic.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ namespace garlic
virtual void ProcessGarlicMessage (I2NPMessage * msg);
virtual void ProcessDeliveryStatusMessage (I2NPMessage * msg);
virtual void SetLeaseSetUpdated ();

virtual const i2p::data::LeaseSet * GetLeaseSet () = 0; // TODO

virtual void HandleI2NPMessage (const uint8_t * buf, size_t len) = 0;

protected:

void HandleGarlicMessage (I2NPMessage * msg);
Expand Down
1 change: 0 additions & 1 deletion Identity.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ namespace data
virtual const PrivateKeys& GetPrivateKeys () const = 0;
virtual const uint8_t * GetEncryptionPrivateKey () const = 0;
virtual const uint8_t * GetEncryptionPublicKey () const = 0;
virtual void HandleI2NPMessage (const uint8_t * buf, size_t len) = 0;

const IdentityEx& GetIdentity () const { return GetPrivateKeys ().GetPublic (); };
const IdentHash& GetIdentHash () const { return GetIdentity ().GetIdentHash (); };
Expand Down
2 changes: 1 addition & 1 deletion RouterContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ namespace i2p
const uint8_t * GetEncryptionPrivateKey () const { return m_Keys.GetPrivateKey (); };
const uint8_t * GetEncryptionPublicKey () const { return GetIdentity ().GetStandardIdentity ().publicKey; };
void SetLeaseSetUpdated () {};
void HandleI2NPMessage (const uint8_t * buf, size_t len);

// implements GarlicDestination
const i2p::data::LeaseSet * GetLeaseSet () { return nullptr; };
void HandleI2NPMessage (const uint8_t * buf, size_t len);

private:

Expand Down

0 comments on commit 22937e1

Please sign in to comment.