A pluggable network subsystem. More...
#include <peer_network.h>
Public Member Functions | |
| virtual | ~Subsystem ()=default |
| virtual void | attach (NodeContext &ctx)=0 |
| virtual void | start ()=0 |
| virtual void | stop ()=0 |
A pluggable network subsystem.
Owns its own threads/sockets if it needs them; reaches the rest of the node only through the NodeContext it is attached to (the peer mesh via ctx.network, host events via ctx.events, sibling modules via ctx.services). A subsystem is mocked in tests by faking those interfaces.
Definition at line 63 of file peer_network.h.
|
virtualdefault |
|
pure virtual |
|
pure virtual |
|
pure virtual |