informalsystems / reactor-experiments

Experiments to help us establish a concurrency architecture for Tendermint in Rust
1 stars 0 forks source link

Minimal abstraction for network stack #3

Open brapse opened 4 years ago

brapse commented 4 years ago

The current experiment binds directly to a TcpListener. It might be interesting to bind to some treat which provides the accept and listen function which could be driven by a simulator.

thanethomson commented 4 years ago

Definitely, and I think if we don't use libp2p eventually then we should strongly consider adapting and adopting libp2p's architecture when it comes to abstracting "transports", "streams" and "network behaviours". See the libp2p crate's docs here for details.