Add a PeriodicPingHandler and a PingListenHandler (#574)

* Add ProtocolsHandler trait

* Reexport symbols

* Add a note about shutting down

* Add a PeriodicPingHandler and a PingListenHandler

* Fix core doctest

* Add tolerating not supported

* Fix concerns
This commit is contained in:
Pierre Krieger
2018-11-04 09:47:15 +01:00
committed by GitHub
parent 631ceaea4b
commit 4405518045
6 changed files with 935 additions and 404 deletions

View File

@ -132,7 +132,7 @@
//! extern crate tokio;
//!
//! use futures::{Future, Stream};
//! use libp2p_ping::{Ping, PingOutput};
//! use libp2p_ping::protocol::{Ping, PingOutput};
//! use libp2p_core::Transport;
//! use tokio::runtime::current_thread::Runtime;
//!