Show / Hide Table of Contents

Interface IPeerDiscovery

Describes a service that finds a peer.

Inherited Members
IService.StartAsync()
IService.StopAsync()
Namespace: PeerTalk.Discovery
Assembly: PeerTalk.dll
Syntax
public interface IPeerDiscovery : IService
Remarks

All discovery services must raise the PeerDiscovered event.

Events

| Improve this Doc View Source

PeerDiscovered

Raised when a peer is discovered.

Declaration
event EventHandler<Peer> PeerDiscovered
Event Type
Type Description
EventHandler<Peer>
Remarks

The peer must contain at least one MultiAddress. The address must end with the ipfs protocol and the public ID of the peer. For example "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"

  • Improve this Doc
  • View Source
Back to top Generated by DocFX