示例#1
0
        /// <summary>
        /// Lit un nom qualifié dans le flux courant
        /// </summary>
        /// <param name="source">tableau source</param>
        /// <param name="offset">décallage</param>
        /// <returns>Valeur lue</returns>
        public DNSName ReadDNSName()
        {
            DNSName ret = new DNSName();

            ret.Read(this);
            return(ret);
        }
示例#2
0
 /// <summary>
 /// Lit le flux sous-jacent
 /// </summary>
 public override void Read(DNSRequest request, int Length)
 {
     mName   = request.ReadDNSName();
     rName   = request.ReadDNSName();
     serial  = request.ReadInt();
     refresh = request.ReadInt();
     retry   = request.ReadInt();
     expire  = request.ReadInt();
     minimum = request.ReadInt();
 }
示例#3
0
        /// <summary>
        /// Lit le flux sous-jacent
        /// </summary>
        public override void Read(DNSRequest request)
        {
            name       = request.ReadDNSName();
            Type       = request.ReadShort();
            Class      = (DNSClass)request.ReadShort();
            TimeToLive = request.ReadInt();
            ushort resourceDataLength = request.ReadShort();

            request.Push();

            Details = CreateResourceDetails(Type);
            Details.resourceRecord = this;
            Details.Read(request, resourceDataLength);

            request.Pop();
            request.Position += resourceDataLength;
        }
示例#4
0
 /// <summary>
 /// Lit le flux sous-jacent
 /// </summary>
 public override void Read(DNSRequest request, int Length)
 {
     dnsName = request.ReadDNSName();
 }
示例#5
0
 /// <summary>
 /// Lit le flux sous-jacent
 /// </summary>
 public override void Read(DNSRequest request, int Length)
 {
     eMailBx = request.ReadDNSName();
     rMailBx = request.ReadDNSName();
 }
示例#6
0
 /// <summary>
 /// Lit le flux sous-jacent
 /// </summary>
 public override void Read(DNSRequest request)
 {
     name  = request.ReadDNSName();
     Type  = request.ReadShort();
     Class = (DNSClass)request.ReadShort();
 }
示例#7
0
 /// <summary>
 /// Lit le flux sous-jacent
 /// </summary>
 public override void Read(DNSRequest request, int Length)
 {
     preference = request.ReadShort();
     dnsName    = request.ReadDNSName();
 }
示例#8
0
 /// <summary>
 /// Ecrit un nom DNS sur le flux
 /// </summary>
 /// <param name="target">cible de l'écriture</param>
 /// <param name="offset">décallage</param>
 /// <param name="Value">valeur à écrire</param>
 public void Write(DNSName Value)
 {
     Value.Write(this);
 }