Squeleton code for the global routing matrix. Most functions are left unimplemented, but

the basic structure is here. Functions have been added to serialise both SHA1 and floats.
The router is not yet enabled since protocol is likely to change again.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6886 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-11-02 14:35:33 +00:00
parent 261d9102d4
commit e0863194a3
18 changed files with 1241 additions and 4 deletions

View file

@ -88,7 +88,7 @@ class RsItem: public RsMemoryManagement::SmallObject
void PeerId(const std::string& id) { peerId = id; }
/* complete id */
uint32_t PacketId();
uint32_t PacketId() const;
/* id parts */
uint8_t PacketVersion();
@ -122,7 +122,7 @@ virtual uint32_t size(RsItem *);
virtual bool serialise (RsItem *item, void *data, uint32_t *size);
virtual RsItem * deserialise(void *data, uint32_t *size);
uint32_t PacketId();
uint32_t PacketId() const;
private:
uint32_t type;
};