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
PeerTable = Table[string, HashSet[PubSubPeer]]
- Source Edit
Procs
func addPeer(table: var PeerTable; topic: string; peer: PubSubPeer): bool {. ...raises: [Defect], tags: [].}
- Source Edit
func hasPeer(table: PeerTable; topic: string; peer: PubSubPeer): bool {. ...raises: [Defect], tags: [].}
- Source Edit
proc hasPeerId(t: PeerTable; topic: string; peerId: PeerId): bool {. ...raises: [Defect], tags: [].}
- Source Edit
func removePeer(table: var PeerTable; topic: string; peer: PubSubPeer) {. ...raises: [Defect], tags: [].}
- Source Edit