Struct SrvRecord
- Namespace
- AppleTvControlLibrary.Discovery.Dns
- Assembly
- AppleTvControlLibrary.Discovery.dll
Represents a parsed DNS SRV record's RDATA.
public readonly struct SrvRecord
- Inherited Members
Remarks
Initializes a new instance of the SrvRecord struct.
Constructors
SrvRecord(ushort, ushort, ushort, string)
Represents a parsed DNS SRV record's RDATA.
public SrvRecord(ushort priority, ushort weight, ushort port, string target)
Parameters
priorityushortThe SRV record priority; lower values are preferred.
weightushortThe SRV record weight among records of equal priority.
portushortThe advertised service port.
targetstringThe target hostname of the service.
Remarks
Initializes a new instance of the SrvRecord struct.
Properties
Port
Gets the target service port.
public ushort Port { get; }
Property Value
- ushort
The target service port.
Priority
Gets the record priority.
public ushort Priority { get; }
Property Value
- ushort
The record priority.
Target
Gets the target host name.
public string Target { get; }
Property Value
- string
The target host name.
Weight
Gets the record weight.
public ushort Weight { get; }
Property Value
- ushort
The record weight.