Class MdnsNext
Discovers peers using Multicast DNS according to https://github.com/libp2p/specs/blob/master/discovery/mdns.md
Inherited Members
Namespace: PeerTalk.Discovery
Assembly: PeerTalk.dll
Syntax
public class MdnsNext : Mdns, IPeerDiscovery, IServiceConstructors
| Improve this Doc View SourceMdnsNext()
Creates a new instance of the class. Sets the ServiceName to "_p2p._udp".
Declaration
public MdnsNext()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 SourceSafeLabel(String, Int32)
Creates a safe DNS label.
Declaration
public static string SafeLabel(string label, int maxLength = 63)Parameters
| Type | Name | Description | 
|---|---|---|
| String | label | |
| Int32 | maxLength | 
Returns
| Type | Description | 
|---|---|
| String |