fixed up tlv serialisers:

- Added RsTvlUnit: public RsTlvItem, which handles some of the infrstructure.
 - made TlvSize() SetTlv() and print() const.
 - split rstlvtypes into its bits and cleaned up header files.
 - added templated RsTlvList, imilar to cyrils id one.
 - removed GXS_GEN_TESTNET
 - cleanedup rsserviceids.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7215 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2014-03-29 15:34:37 +00:00
parent 1042744685
commit 600639db51
86 changed files with 2464 additions and 2444 deletions

View file

@ -164,7 +164,8 @@ void pqiIpAddrList::extractFromTlv(const RsTlvIpAddrSet &tlvAddrs)
{
std::list<RsTlvIpAddressInfo>::const_iterator it;
for(it = tlvAddrs.addrs.begin(); it != tlvAddrs.addrs.end() ; ++it)
//for(it = tlvAddrs.addrs.begin(); it != tlvAddrs.addrs.end() ; ++it)
for(it = tlvAddrs.mList.begin(); it != tlvAddrs.mList.end() ; ++it)
{
pqiIpAddress addr;
addr.mAddr = it->addr.addr;
@ -186,7 +187,8 @@ void pqiIpAddrList::loadTlv(RsTlvIpAddrSet &tlvAddrs) const
addr.seenTime = it->mSeenTime;
addr.source = it->mSrc;
tlvAddrs.addrs.push_back(addr);
//tlvAddrs.addrs.push_back(addr);
tlvAddrs.mList.push_back(addr);
}
}