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;
2using System.Collections.Generic;
3using System.IO;
7
9{
13 public class HINFO : ResourceRecord
14 {
15 private string cpu;
16 private string os;
17
21 public HINFO()
22 : base()
23 {
24 this.cpu = string.Empty;
25 this.os = string.Empty;
26 }
27
36 public HINFO(string Name, TYPE Type, CLASS Class, uint Ttl, Stream Data)
37 : base(Name, Type, Class, Ttl)
38 {
39 this.cpu = DnsClient.ReadString(Data);
40 this.os = DnsClient.ReadString(Data);
41 }
42
46 [DefaultValueStringEmpty]
47 public string CPU
48 {
49 get => this.cpu;
50 set => this.cpu = value;
51 }
52
56 [DefaultValueStringEmpty]
57 public string OS
58 {
59 get => this.os;
60 set => this.os = value;
61 }
62
64 public override string ToString()
65 {
66 return base.ToString() + "\t" + this.cpu + "\t" + this.os;
67 }
68 }
69}
Abstract base class for DNS clients.
Definition: DnsClient.cs:21
General information about a host.
Definition: HINFO.cs:14
HINFO(string Name, TYPE Type, CLASS Class, uint Ttl, Stream Data)
General information about a host.
Definition: HINFO.cs:36
string CPU
Specifies the CPU type.
Definition: HINFO.cs:48
HINFO()
General information about a host.
Definition: HINFO.cs:21
string OS
Specifies the OS type.
Definition: HINFO.cs:58
Abstract base class for a resource record.
CLASS
TYPE fields are used in resource records.
Definition: CLASS.cs:11
TYPE
TYPE fields are used in resource records.
Definition: TYPE.cs:11