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

Class: Net_DNS2_Header

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

Class Overview


DNS Packet Header class


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 84]
DNS Packet Header class

This class handles parsing and constructing DNS Packet Headers as defined by section 4.1.1 of RFC1035.

DNS header format - RFC1035 section 4.1.1 DNS header format - RFC4035 section 3.2

  1. 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | ID | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ |QR| Opcode |AA|TC|RD|RA| Z|AD|CD| RCODE | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QDCOUNT | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | ANCOUNT | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | NSCOUNT | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | ARCOUNT | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+



[ Top ]


Class Variables

$aa =

[line 89]

  • Access: public

Type:   mixed


[ Top ]

$ad =

[line 94]

  • Access: public

Type:   mixed


[ Top ]

$ancount =

[line 98]

  • Access: public

Type:   mixed


[ Top ]

$arcount =

[line 100]

  • Access: public

Type:   mixed


[ Top ]

$cd =

[line 95]

  • Access: public

Type:   mixed


[ Top ]

$id =

[line 86]

  • Access: public

Type:   mixed


[ Top ]

$nscount =

[line 99]

  • Access: public

Type:   mixed


[ Top ]

$opcode =

[line 88]

  • Access: public

Type:   mixed


[ Top ]

$qdcount =

[line 97]

  • Access: public

Type:   mixed


[ Top ]

$qr =

[line 87]

  • Access: public

Type:   mixed


[ Top ]

$ra =

[line 92]

  • Access: public

Type:   mixed


[ Top ]

$rcode =

[line 96]

  • Access: public

Type:   mixed


[ Top ]

$rd =

[line 91]

  • Access: public

Type:   mixed


[ Top ]

$tc =

[line 90]

  • Access: public

Type:   mixed


[ Top ]

$z =

[line 93]

  • Access: public

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 111]

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

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

Parameters:

mixed   &$packet   —  either a Net_DNS2_Packet object or null

[ Top ]

get   [line 254]

string get( Net_DNS2_Packet &$packet)

returns a binary packed DNS Header
  • Access: public

Parameters:

Net_DNS2_Packet   &$packet   —  Object

[ Top ]

nextPacketId   [line 143]

integer nextPacketId( )

returns the next available packet id
  • Access: public

[ Top ]

set   [line 193]

boolean set( Net_DNS2_Packet &$packet)

constructs a Net_DNS2_Header from a Net_DNS2_Packet object
  • Throws: Net_DNS2_Exception
  • Access: public

Parameters:

Net_DNS2_Packet   &$packet   —  Object

[ Top ]

__toString   [line 160]

string __toString( )

magic __toString() method to return the header 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.