Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TXT.cs
1
using
System.Collections.Generic
;
2
using
System.IO;
3
using
System.Text;
4
using
Waher.Networking.DNS.Communication
;
5
using
Waher.Networking.DNS.Enumerations
;
6
using
Waher.Persistence.Attributes
;
7
8
namespace
Waher.Networking.DNS.ResourceRecords
9
{
13
public
class
TXT
:
ResourceRecord
14
{
15
private
string
[] text;
16
20
public
TXT
()
21
: base()
22
{
23
this.text =
null
;
24
}
25
35
public
TXT
(
string
Name
,
TYPE
Type
,
CLASS
Class
, uint
Ttl
, Stream Data,
long
EndPos)
36
: base(
Name
,
Type
,
Class
,
Ttl
)
37
{
38
List<string>
Text
=
new
List<string>();
39
40
while
(Data.Position < EndPos)
41
Text
.Add(
DnsClient
.ReadString(Data));
42
43
this.text =
Text
.ToArray();
44
}
45
49
[DefaultValueNull]
50
public
string
[]
Text
51
{
52
get
=> this.text;
53
set
=> this.text = value;
54
}
55
57
public
override
string
ToString
()
58
{
59
StringBuilder sb =
new
StringBuilder(base.ToString());
60
61
foreach
(
string
s
in
this.text)
62
{
63
sb.Append(
'\t'
);
64
sb.Append(s);
65
}
66
67
return
sb.ToString();
68
}
69
70
}
71
}
Waher.Networking.DNS.Communication.DnsClient
Abstract base class for DNS clients.
Definition:
DnsClient.cs:22
Waher.Networking.DNS.ResourceRecords.ResourceRecord
Abstract base class for a resource record.
Definition:
ResourceRecord.cs:13
Waher.Networking.DNS.ResourceRecords.ResourceRecord.Ttl
uint Ttl
Time To Live
Definition:
ResourceRecord.cs:80
Waher.Networking.DNS.ResourceRecords.ResourceRecord.Type
TYPE Type
Resource Record Type
Definition:
ResourceRecord.cs:60
Waher.Networking.DNS.ResourceRecords.ResourceRecord.Class
CLASS Class
Resource Record Class
Definition:
ResourceRecord.cs:70
Waher.Networking.DNS.ResourceRecords.ResourceRecord.Name
string Name
Name
Definition:
ResourceRecord.cs:50
Waher.Networking.DNS.ResourceRecords.TXT
Descriptive text
Definition:
TXT.cs:14
Waher.Networking.DNS.ResourceRecords.TXT.TXT
TXT()
Descriptive text
Definition:
TXT.cs:20
Waher.Networking.DNS.ResourceRecords.TXT.Text
string[] Text
Descriptive text.
Definition:
TXT.cs:51
Waher.Networking.DNS.ResourceRecords.TXT.TXT
TXT(string Name, TYPE Type, CLASS Class, uint Ttl, Stream Data, long EndPos)
Descriptive text
Definition:
TXT.cs:35
Waher.Networking.DNS.ResourceRecords.TXT.ToString
override string ToString()
Definition:
TXT.cs:57
System.Collections.Generic
Definition:
ImplTypes.g.cs:4970
Waher.Networking.DNS.Communication
Definition:
DnsClient.cs:17
Waher.Networking.DNS.Enumerations
Definition:
CLASS.cs:2
Waher.Networking.DNS.Enumerations.CLASS
CLASS
TYPE fields are used in resource records.
Definition:
CLASS.cs:7
Waher.Networking.DNS.Enumerations.TYPE
TYPE
TYPE fields are used in resource records.
Definition:
TYPE.cs:7
Waher.Networking.DNS.ResourceRecords
Definition:
A.cs:5
Waher.Persistence.Attributes
Definition:
ArchivingTimeAttribute.cs:4
IoTGateway
Networking
Waher.Networking.DNS
ResourceRecords
TXT.cs
Generated by
1.9.5