Net_DNS2
[ class tree: Net_DNS2 ] [ index: Net_DNS2 ] [ all elements ]

Class: Net_DNS2_Question

Source Location: /Net_DNS2-1.4.1/Net/DNS2/Question.php

Class Overview


This class handles parsing and constructing the question sectino of DNS packets.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 79]
This class handles parsing and constructing the question sectino of DNS packets.

This is referred to as the "zone" for update per RFC2136

DNS question format - RFC1035 section 4.1.2

  1. 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | / QNAME / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QTYPE | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QCLASS | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+



[ Top ]


Class Variables

$qclass =

[line 103]

  • Access: public

Type:   mixed


[ Top ]

$qname =

[line 87]

  • Access: public

Type:   mixed


[ Top ]

$qtype =

[line 95]

  • Access: public

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 115]

Net_DNS2_Question __construct( [Net_DNS2_Packet &$packet = null])

Constructor - builds a new Net_DNS2_Question object
  • Throws: Net_DNS2_Exception
  • Access: public

Parameters:

mixed   &$packet   —  either a Net_DNS2_Packet object, or null to build an empty object

[ Top ]

get   [line 211]

string get( Net_DNS2_Packet &$packet)

returns a binary packed Net_DNS2_Question object
  • Throws: Net_DNS2_Exception
  • Access: public

Parameters:

Net_DNS2_Packet   &$packet   —  the Net_DNS2_Packet object this question is part of. This needs to be passed in so that the compressed qname value can be packed in with the names of the other parts of the packet.

[ Top ]

set   [line 151]

boolean set( Net_DNS2_Packet &$packet)

builds a new Net_DNS2_Header object from a Net_DNS2_Packet object
  • Throws: Net_DNS2_Exception
  • Access: public

Parameters:

Net_DNS2_Packet   &$packet   —  a Net_DNS2_Packet object

[ Top ]

__toString   [line 135]

string __toString( )

magic __toString() function to return the Net_DNS2_Question object as a string
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 16:01:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.