# Packages

No description provided by the author
No description provided by the author

# Functions

Create two-way communication with a peer.
NewConnection creates a peer connection struct.
NewConnector creates a new peer connector, and spawns a goroutine that will accept incoming connection requests on the current address, with the given port.
NewMessageProcessor returns an initialized MessageProcessor.
NewReaderFactory returns an initialized ReaderFactory.
NewWriter returns a Writer.

# Structs

Connection holds the TCP connection to another node, and it's known protocol magic.
Connector is responsible for accepting incoming connection requests, and establishing outward connections with desired peers.
GossipConnector calls Gossip.Process on the message stream incoming from the ringbuffer.
MessageProcessor is connected to all of the processing units that are tied to the peer.
Reader abstracts all of the logic and fields needed to receive messages from other network nodes.
ReaderFactory is responsible for spawning peers.
VersionMessage is a version message on the dusk wire protocol.
Writer abstracts all of the logic and fields needed to write messages to other network nodes.

# Type aliases

ProcessorFunc defines an interface for callbacks which can be registered to the MessageProcessor, in order to process messages from the network.