module MDNS
Defined in:
comms/client.crdns/domain_name.cr
dns/message.cr
dns/query.cr
dns/resource.cr
mdns.cr
Constant Summary
-
DEFAULT_WAIT_TIME =
2.seconds
-
IPv4 =
Socket::IPAddress.new("224.0.0.251", PORT)
-
IPv6 =
Socket::IPAddress.new("FF02::FB", PORT)
-
PORT =
5353
Class Method Summary
-
.one_shot(wait : Time::Span = DEFAULT_WAIT_TIME, family : Socket::Family = Socket::Family::INET, &)
you can configure the query in the provided block
- .one_shot(domain : String, wait : Time::Span = DEFAULT_WAIT_TIME, type : Type = Type::PTR, klass : RecordClass = RecordClass::Internet, family : Socket::Family = Socket::Family::INET)
Class Method Detail
def self.one_shot(wait : Time::Span = DEFAULT_WAIT_TIME, family : Socket::Family = Socket::Family::INET, &)
#
you can configure the query in the provided block
def self.one_shot(domain : String, wait : Time::Span = DEFAULT_WAIT_TIME, type : Type = Type::PTR, klass : RecordClass = RecordClass::Internet, family : Socket::Family = Socket::Family::INET)
#