class MDNS::Server

Overview

this is the basis for a full Continuous Multicast DNS Querying service this implements a very basic transport layer

Defined in:

comms/server.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(address : Socket::IPAddress, buffer_size = 16, loopback = false, hops = 255) #

Usage: MDNS::Server.new(MDNS::IPv4)


[View source]

Instance Method Detail

def address : Socket::IPAddress #

[View source]
def channel : MessageChannel #

[View source]
def close #

[View source]
def closed? #

[View source]
def query(&) #

this is only required if the information is not already in a cache built from the messages being pushed down the channel


[View source]
def query(domain : String, type : Type = Type::PTR, klass : RecordClass = RecordClass::Internet) #

[View source]
def receive #

receive a mDNS message


[View source]
def socket : UDPSocket #

[View source]