SrvResourceRecord class

A Service record, capturing a host target and port (DNS "SRV").

Inheritance

Constructors

SrvResourceRecord(String name, int validUntil, {required String target, required int port, required int priority, required int weight})
Creates a new service record.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
name String
The FQDN for this record.
finalinherited
port int
The port for this record.
final
priority int
The relative priority of this service.
final
resourceRecordType int
The raw resource record value. See ResourceRecordType for supported values.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target String
The hostname for this record.
final
validUntil int
The epoch time at which point this record is valid for in the cache.
finalinherited
weight int
The weight (used when multiple services have the same priority).
final

Methods

encodeResponseRecord() Uint8List
Low level method for encoding this record into an mDNS packet.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override