|
@@ -72,11 +72,13 @@ private:
|
|
|
InetAddress reporterPhysicalAddress;
|
|
|
InetAddress::IpScope scope;
|
|
|
|
|
|
- PhySurfaceKey() : reporter(),scope(InetAddress::IP_SCOPE_NONE) {}
|
|
|
- PhySurfaceKey(const Address &r,const int64_t rol,const InetAddress &ra,InetAddress::IpScope s) : reporter(r),receivedOnLocalSocket(rol),reporterPhysicalAddress(ra),scope(s) {}
|
|
|
+ inline PhySurfaceKey() : reporter(),scope(InetAddress::IP_SCOPE_NONE) {}
|
|
|
+ inline PhySurfaceKey(const Address &r,const int64_t rol,const InetAddress &ra,InetAddress::IpScope s) : reporter(r),receivedOnLocalSocket(rol),reporterPhysicalAddress(ra),scope(s) {}
|
|
|
|
|
|
inline unsigned long hashCode() const { return ((unsigned long)reporter.toInt() + (unsigned long)scope); }
|
|
|
+
|
|
|
inline bool operator==(const PhySurfaceKey &k) const { return ((reporter == k.reporter)&&(receivedOnLocalSocket == k.receivedOnLocalSocket)&&(reporterPhysicalAddress == k.reporterPhysicalAddress)&&(scope == k.scope)); }
|
|
|
+ inline bool operator!=(const PhySurfaceKey &k) const { return (!(*this == k)); }
|
|
|
};
|
|
|
struct PhySurfaceEntry
|
|
|
{
|
|
@@ -84,8 +86,8 @@ private:
|
|
|
uint64_t ts;
|
|
|
bool trusted;
|
|
|
|
|
|
- PhySurfaceEntry() : mySurface(),ts(0),trusted(false) {}
|
|
|
- PhySurfaceEntry(const InetAddress &a,const uint64_t t) : mySurface(a),ts(t),trusted(false) {}
|
|
|
+ inline PhySurfaceEntry() : mySurface(),ts(0),trusted(false) {}
|
|
|
+ inline PhySurfaceEntry(const InetAddress &a,const uint64_t t) : mySurface(a),ts(t),trusted(false) {}
|
|
|
};
|
|
|
|
|
|
const RuntimeEnvironment *RR;
|