Use ECHO instead of HELLO where possible.

This commit is contained in:
Adam Ierymenko 2016-09-07 12:01:03 -07:00
parent a9f404aac3
commit a7d988745b
4 changed files with 39 additions and 16 deletions

View file

@ -165,6 +165,17 @@ public:
*/
void sendHELLO(const InetAddress &localAddr,const InetAddress &atAddress,uint64_t now);
/**
* Send ECHO (or HELLO for older peers) to this peer at the given address
*
* No statistics or sent times are updated here.
*
* @param localAddr Local address
* @param atAddress Destination address
* @param now Current time
*/
void attemptToContactAt(const InetAddress &localAddr,const InetAddress &atAddress,uint64_t now);
/**
* Send pings or keepalives depending on configured timeouts
*