Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
HINFO.cs
1using System.IO;
5
7{
11 public class HINFO : ResourceRecord
12 {
13 private string cpu;
14 private string os;
15
19 public HINFO()
20 : base()
21 {
22 this.cpu = string.Empty;
23 this.os = string.Empty;
24 }
25
34 public HINFO(string Name, TYPE Type, CLASS Class, uint Ttl, Stream Data)
35 : base(Name, Type, Class, Ttl)
36 {
37 this.cpu = DnsClient.ReadString(Data);
38 this.os = DnsClient.ReadString(Data);
39 }
40
44 [DefaultValueStringEmpty]
45 public string CPU
46 {
47 get => this.cpu;
48 set => this.cpu = value;
49 }
50
54 [DefaultValueStringEmpty]
55 public string OS
56 {
57 get => this.os;
58 set => this.os = value;
59 }
60
62 public override string ToString()
63 {
64 return base.ToString() + "\t" + this.cpu + "\t" + this.os;
65 }
66 }
67}
Abstract base class for DNS clients.
Definition: DnsClient.cs:22
General information about a host.
Definition: HINFO.cs:12
HINFO(string Name, TYPE Type, CLASS Class, uint Ttl, Stream Data)
General information about a host.
Definition: HINFO.cs:34
string CPU
Specifies the CPU type.
Definition: HINFO.cs:46
HINFO()
General information about a host.
Definition: HINFO.cs:19
string OS
Specifies the OS type.
Definition: HINFO.cs:56
Abstract base class for a resource record.
CLASS
TYPE fields are used in resource records.
Definition: CLASS.cs:7
TYPE
TYPE fields are used in resource records.
Definition: TYPE.cs:7