Cleanup, optimization, multicast stuff, and it now compiles again.

This commit is contained in:
Adam Ierymenko 2019-09-11 15:34:55 -07:00
parent bccb86a401
commit d8dae365f6
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
13 changed files with 144 additions and 219 deletions

View file

@ -49,7 +49,7 @@ class Network;
class IncomingPacket : public Packet
{
public:
inline IncomingPacket() :
ZT_ALWAYS_INLINE IncomingPacket() :
Packet(),
_receiveTime(0)
{
@ -64,7 +64,7 @@ public:
* @param now Current time
* @throws std::out_of_range Range error processing packet
*/
inline IncomingPacket(const void *data,unsigned int len,const SharedPtr<Path> &path,int64_t now) :
ZT_ALWAYS_INLINE IncomingPacket(const void *data,unsigned int len,const SharedPtr<Path> &path,int64_t now) :
Packet(data,len),
_receiveTime(now),
_path(path)
@ -80,7 +80,7 @@ public:
* @param now Current time
* @throws std::out_of_range Range error processing packet
*/
inline void init(const void *data,unsigned int len,const SharedPtr<Path> &path,int64_t now)
ZT_ALWAYS_INLINE void init(const void *data,unsigned int len,const SharedPtr<Path> &path,int64_t now)
{
copyFrom(data,len);
_receiveTime = now;
@ -105,7 +105,7 @@ public:
/**
* @return Time of packet receipt / start of decode
*/
inline uint64_t receiveTime() const { return _receiveTime; }
ZT_ALWAYS_INLINE uint64_t receiveTime() const { return _receiveTime; }
private:
// These are called internally to handle packet contents once it has