Add user PING support (#346)
- Add `share::PingPong`, which can send `Ping`s, and poll for the `Pong` from the peer.
This commit is contained in:
@@ -178,6 +178,10 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn take_user_pings(&mut self) -> Option<UserPings> {
|
||||
self.ping_pong.take_user_pings()
|
||||
}
|
||||
|
||||
/// Advances the internal state of the connection.
|
||||
pub fn poll(&mut self) -> Poll<(), proto::Error> {
|
||||
use codec::RecvError::*;
|
||||
|
||||
Reference in New Issue
Block a user