diff --git a/protocol.h b/protocol.h index 804b3a2..6e74194 100644 --- a/protocol.h +++ b/protocol.h @@ -70,6 +70,9 @@ class Protocol { void sendIHave(u64 id, u64 datId, u32 seqno); /** Sends a IHave packet for `datId` */ + u64 getSelfId() const { return selfId; } + /** Returns the ID of this node. */ + private: //meth void startPollNetwork(); void pollNetwork();