mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
45 lines
1 KiB
C#
45 lines
1 KiB
C#
using System;
|
|
|
|
/*
|
|
3.3.2. HINFO RDATA format
|
|
|
|
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|
|
/ CPU /
|
|
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|
|
/ OS /
|
|
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|
|
|
|
where:
|
|
|
|
CPU A <character-string> which specifies the CPU type.
|
|
|
|
OS A <character-string> which specifies the operating
|
|
system type.
|
|
|
|
Standard values for CPU and OS can be found in [RFC-1010].
|
|
|
|
HINFO records are used to acquire general information about a host. The
|
|
main use is for protocols such as FTP that can use special procedures
|
|
when talking between machines or operating systems of the same type.
|
|
*/
|
|
|
|
namespace Heijden.DNS
|
|
{
|
|
public class RecordHINFO : Record
|
|
{
|
|
public string CPU;
|
|
public string OS;
|
|
|
|
public RecordHINFO(RecordReader rr)
|
|
{
|
|
CPU = rr.ReadString();
|
|
OS = rr.ReadString();
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.Format("CPU={0} OS={1}",CPU,OS);
|
|
}
|
|
|
|
}
|
|
}
|