mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Use safer rstime_t instead of time_t
Avoid problems to serialization on different platforms, without breaking nested STL containers serialization. The conversion have been made with sed, and checked with grep, plus kdiff3 visual ispection, plus rutime tests, so it should be fine.
This commit is contained in:
parent
41aa675a9b
commit
329050a9c2
223 changed files with 930 additions and 911 deletions
|
@ -93,9 +93,9 @@ class RsDhtPeer
|
|||
int mBucket;
|
||||
std::string mDhtId;
|
||||
std::string mAddr;
|
||||
time_t mLastSendTime;
|
||||
time_t mLastRecvTime;
|
||||
time_t mFoundTime;
|
||||
rstime_t mLastSendTime;
|
||||
rstime_t mLastRecvTime;
|
||||
rstime_t mFoundTime;
|
||||
uint32_t mPeerFlags;
|
||||
uint32_t mExtraFlags;
|
||||
};
|
||||
|
@ -132,7 +132,7 @@ class RsDhtRelayEnd
|
|||
std::string mLocalAddr;
|
||||
std::string mProxyAddr;
|
||||
std::string mRemoteAddr;
|
||||
time_t mCreateTS;
|
||||
rstime_t mCreateTS;
|
||||
};
|
||||
|
||||
class RsDhtRelayProxy
|
||||
|
@ -145,11 +145,11 @@ class RsDhtRelayProxy
|
|||
|
||||
double mBandwidth;
|
||||
int mRelayClass;
|
||||
time_t mLastTS;
|
||||
time_t mCreateTS;
|
||||
rstime_t mLastTS;
|
||||
rstime_t mCreateTS;
|
||||
|
||||
//uint32_t mDataSize;
|
||||
//time_t mLastBandwidthTS;
|
||||
//rstime_t mLastBandwidthTS;
|
||||
|
||||
};
|
||||
class RsDhtFilteredPeer
|
||||
|
@ -157,8 +157,8 @@ class RsDhtFilteredPeer
|
|||
public:
|
||||
struct sockaddr_in mAddr;
|
||||
uint32_t mFilterFlags; /* reasons why we are filtering */
|
||||
time_t mFilterTS;
|
||||
time_t mLastSeen;
|
||||
rstime_t mFilterTS;
|
||||
rstime_t mLastSeen;
|
||||
};
|
||||
|
||||
class RsDht
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue