Skip to content

Latest commit

 

History

History

network

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

snarkOS-network

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.

modules

context

Contains network context and thread-safe components for managing stateful information such as connections, handshakes, peers, and pings.

message

Contains all network message types and serialization standards for reading and writing to asynchronous tcp streams.

protocol

Contains components for connecting, maintaining, and syncing with remote peers.

server

Contains components for starting the miner and server as well as functions for the connection handler and message handler.