Networking in snarkOS is built using asynchronous rust and tokio.rs. Tokio threads are spawned to handle new connections and send messages back to the main event loop. The main event loop is started from server.rs.
Contains network context and thread-safe components for managing stateful information such as connections, handshakes, peers, and pings.
Contains all network message types and serialization standards for reading and writing to asynchronous tcp streams.
Contains components for connecting, maintaining, and syncing with remote peers.
Contains components for starting the miner and server as well as functions for the connection handler and message handler.