Skip to content

spec/p2p: Document channels and multiplex connections #600

@cason

Description

@cason

A multiplex connection implements multiple abstract communication channels along a single network connection.

A node maintains a MConnection instance for exchanging messages with each connected peer and each Channel is a (fairly) independent message stream connecting the instances of a reactor running at the node and at the peer.

Definition of Done

  • Document the channel abstraction and its relation with reactors
  • Document the concept of channel Priority and its implementation
  • Document the Send and TrySend methods used to send messages to peers
  • Overview the logic for sending and receiving messages and packets in a multiplex connection

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2pspecSpecification-related

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions