Added creation and periodic update of a file called "status" in the home directory that contains peer link status. Useful for debugging and statistics. Send it SIGHUP to force an update now. Otherwise it updates every 120 seconds.
This commit is contained in:
parent
68cc5ea523
commit
7c85a638b0
7 changed files with 120 additions and 15 deletions
|
@ -232,6 +232,46 @@ public:
|
|||
return ((_ipv4p.isActive(now))||(_ipv6p.isActive(now)));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IPv4 direct address or null InetAddress if none
|
||||
*/
|
||||
inline InetAddress ipv4Path() const
|
||||
throw()
|
||||
{
|
||||
return _ipv4p.addr;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IPv6 direct address or null InetAddress if none
|
||||
*/
|
||||
inline InetAddress ipv6Path() const
|
||||
throw()
|
||||
{
|
||||
return _ipv4p.addr;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IPv4 direct address or null InetAddress if none
|
||||
*/
|
||||
inline InetAddress ipv4ActivePath(uint64_t now) const
|
||||
throw()
|
||||
{
|
||||
if (_ipv4p.isActive(now))
|
||||
return _ipv4p.addr;
|
||||
return InetAddress();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IPv6 direct address or null InetAddress if none
|
||||
*/
|
||||
inline InetAddress ipv6ActivePath(uint64_t now) const
|
||||
throw()
|
||||
{
|
||||
if (_ipv6p.isActive(now))
|
||||
return _ipv6p.addr;
|
||||
return InetAddress();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return 256-bit encryption key
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue