parent
8b65b3e6d7
commit
d6a346ca6e
3 changed files with 90 additions and 74 deletions
|
@ -294,6 +294,20 @@ public:
|
|||
return InetAddress();
|
||||
}
|
||||
|
||||
/**
|
||||
* Forget direct paths
|
||||
*
|
||||
* @param fixedToo If true, also forget 'fixed' paths.
|
||||
*/
|
||||
inline void forgetDirectPaths(bool fixedToo)
|
||||
throw()
|
||||
{
|
||||
if ((fixedToo)||(!_ipv4p.fixed))
|
||||
_ipv4p.addr.zero();
|
||||
if ((fixedToo)||(!_ipv6p.fixed))
|
||||
_ipv6p.addr.zero();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return 256-bit secret symmetric encryption key
|
||||
*/
|
||||
|
@ -411,6 +425,7 @@ public:
|
|||
|
||||
return (p - startAt);
|
||||
}
|
||||
|
||||
private:
|
||||
/**
|
||||
* A direct IP path to a peer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue