Beispiel #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);
        }
Beispiel #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();
 }
Beispiel #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;
        }
Beispiel #4
0
 /// <summary>
 /// Lit le flux sous-jacent
 /// </summary>
 public override void Read(DNSRequest request, int Length)
 {
     dnsName = request.ReadDNSName();
 }
Beispiel #5
0
 /// <summary>
 /// Lit le flux sous-jacent
 /// </summary>
 public override void Read(DNSRequest request, int Length)
 {
     eMailBx = request.ReadDNSName();
     rMailBx = request.ReadDNSName();
 }
 /// <summary>
 /// Lit le flux sous-jacent
 /// </summary>
 public override void Read(DNSRequest request)
 {
     name  = request.ReadDNSName();
     Type  = request.ReadShort();
     Class = (DNSClass)request.ReadShort();
 }
Beispiel #7
0
 /// <summary>
 /// Lit le flux sous-jacent
 /// </summary>
 public override void Read(DNSRequest request, int Length)
 {
     preference = request.ReadShort();
     dnsName    = request.ReadDNSName();
 }
Beispiel #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);
 }