Class MdnsJs
Discovers peers using Multicast DNS according to js-ipfs v0.32.3
Inherited Members
Namespace: PeerTalk.Discovery
Assembly: PeerTalk.dll
Syntax
public class MdnsJs : Mdns, IPeerDiscovery, IService
Constructors
| Improve this Doc View SourceMdnsJs()
Creates a new instance of the class. Sets the ServiceName to "ipfs".
Declaration
public MdnsJs()
Methods
| Improve this Doc View SourceBuildProfile()
Build the profile which contains the DNS records that are needed to locate and connect to the local peer.
Declaration
public override ServiceProfile BuildProfile()
Returns
Type | Description |
---|---|
ServiceProfile | Describes the service. |
Overrides
| Improve this Doc View SourceGetAddresses(Message)
Get the addresses of the peer in the DNS message.
Declaration
public override IEnumerable<MultiAddress> GetAddresses(Message message)
Parameters
Type | Name | Description |
---|---|---|
Makaretu.Dns.Message | message | An answer describing a peer. |
Returns
Type | Description |
---|---|
IEnumerable<MultiAddress> | All the addresses of the peer. |
Overrides
| Improve this Doc View SourceOnServiceDiscovery(ServiceDiscovery)
Allows derived class to modify the service discovery behavior.
Declaration
protected override void OnServiceDiscovery(ServiceDiscovery discovery)
Parameters
Type | Name | Description |
---|---|---|
ServiceDiscovery | discovery |