Nim-LibP2P Copyright (c) 2019 Status Research & Development GmbH
- Licensed under either of
- Apache License, version 2.0, (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option. This file may not be copied, modified, or distributed except according to those terms.
Types
ControlGraft = object topicID*: string
- Source Edit
ControlIHave = object topicID*: string messageIDs*: seq[MessageID]
- Source Edit
ControlIWant = object messageIDs*: seq[MessageID]
- Source Edit
ControlMessage = object ihave*: seq[ControlIHave] iwant*: seq[ControlIWant] graft*: seq[ControlGraft] prune*: seq[ControlPrune]
- Source Edit
ControlPrune = object topicID*: string peers*: seq[PeerInfoMsg] backoff*: uint64
- Source Edit
Message = object fromPeer*: PeerId data*: seq[byte] seqno*: seq[byte] topicIDs*: seq[string] signature*: seq[byte] key*: seq[byte]
- Source Edit
PeerInfoMsg = object peerId*: PeerId signedPeerRecord*: seq[byte]
- Source Edit
Procs
func shortLog(c: ControlMessage): auto {....raises: [Defect], tags: [].}
- Source Edit
func shortLog(s: ControlGraft): auto {....raises: [Defect], tags: [].}
- Source Edit
func shortLog(s: ControlIHave): auto {....raises: [Defect], tags: [].}
- Source Edit
func shortLog(s: ControlIWant): auto {....raises: [Defect], tags: [].}
- Source Edit
func shortLog(s: ControlPrune): auto {....raises: [Defect], tags: [].}
- Source Edit