示例#1
0
 /// <summary> Add an additional answer to the record. Omit if there is no room.</summary>
 internal void AddAdditionalAnswer(DNSIncoming in_Renamed, DNSRecord rec)
 {
     if ((off < DNSConstants.MAX_MSG_TYPICAL - 200) && !rec.SuppressedBy(in_Renamed))
     {
         WriteRecord(rec, 0);
         numAdditionals++;
     }
 }
示例#2
0
 /// <summary> Add an answer if it is not suppressed.</summary>
 internal void AddAnswer(DNSIncoming in_Renamed, DNSRecord rec)
 {
     if (numAuthorities > 0 || numAdditionals > 0)
     {
         // TODO is this the right exception
         throw new Exception("Answers must be added before authorities and additionals");
     }
     if (!rec.SuppressedBy(in_Renamed))
     {
         AddAnswer(rec, 0);
     }
 }
示例#3
0
		/// <summary> Add an answer if it is not suppressed.</summary>
		internal void AddAnswer(DNSIncoming in_Renamed, DNSRecord rec)
		{
			if (numAuthorities > 0 || numAdditionals > 0)
			{
				// TODO is this the right exception
				throw new Exception("Answers must be added before authorities and additionals");
			}
			if (!rec.SuppressedBy(in_Renamed))
			{
				AddAnswer(rec, 0);
			}
		}
示例#4
0
		/// <summary> Add an additional answer to the record. Omit if there is no room.</summary>
		internal void AddAdditionalAnswer(DNSIncoming in_Renamed, DNSRecord rec)
		{
			if ((off < DNSConstants.MAX_MSG_TYPICAL - 200) && !rec.SuppressedBy(in_Renamed))
			{
				WriteRecord(rec, 0);
				numAdditionals++;
			}
		}