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

Class: Net_DNS2_Packet_Response

Source Location: /Net_DNS2-1.4.1/Net/DNS2/Packet/Response.php

Class Overview

Net_DNS2_Packet
   |
   --Net_DNS2_Packet_Response

This class handles building new DNS response packets; it parses binary packed packets that come off the wire


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Net_DNS2_Packet

Net_DNS2_Packet::compress()
applies a standard DNS name compression on the given name/offset
Net_DNS2_Packet::copy()
copies the contents of the given packet, to the local packet object. this function intentionally ignores some of the packet data.
Net_DNS2_Packet::expand()
expands the domain name stored at a given offset in a DNS Packet
Net_DNS2_Packet::formatIPv6()
formats an IPv6 IP address in the preferred format
Net_DNS2_Packet::get()
returns a full binary DNS packet
Net_DNS2_Packet::label()
parses a domain label from a DNS Packet at the given offset
Net_DNS2_Packet::pack()
applies a standard DNS name compression on the given name/offset
Net_DNS2_Packet::reset()
resets the values in the current packet object
Net_DNS2_Packet::__toString()
magic __toString() method to return the Net_DNS2_Packet as a string

Class Details

[line 65]
This class handles building new DNS response packets; it parses binary packed packets that come off the wire


[ Top ]


Class Variables

$answer_from =

[line 70]

  • Access: public

Type:   mixed


[ Top ]

$answer_socket_type =

[line 75]

  • Access: public

Type:   mixed


[ Top ]

$response_time =  0

[line 80]

  • Access: public

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 92]

Net_DNS2_Packet_Response __construct( string $data, integer $size)

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

Parameters:

string   $data   —  binary DNS packet
integer   $size   —  the length of the DNS packet

[ Top ]

set   [line 108]

boolean set( string $data, integer $size)

builds a new Net_DNS2_Packet_Response object
  • Throws: Net_DNS2_Exception
  • Access: public

Parameters:

string   $data   —  binary DNS packet
integer   $size   —  the length of the DNS packet

[ Top ]


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