Skip to content

spec/p2p: Document reactors and the Reactor interface #599

@cason

Description

@cason

Reactor is the generic name for a component that interacts with the p2p communication layer.

The interaction between a reactor and the p2p layer is in both directions. To become a reactor, the component has to implement the p2p.Reactor interface and register with the p2p layer. The p2p layer invokes invokes the reactor to process relevant events, for instance, to deliver incoming messages and to inform when it has established connections to peers. The reactor invokes the p2p layer to send message to peers and to control its operation, for instance, for disconnecting from a peer.

Definition of Done

This interaction is relatively complex and needs to be properly documented:

Metadata

Metadata

Assignees

Labels

p2pspecSpecification-related

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions