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

Class: Net_DNS2_Packet_Request

Source Location: /Net_DNS2-1.3.2/Net/DNS2/Packet/Request.php

Class Overview

Net_DNS2_Packet
   |
   --Net_DNS2_Packet_Request

This class handles building new DNS request packets; packets used for DNS queries and updates.


Author(s):

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 request packets; packets used for DNS queries and updates.


[ Top ]


Method Detail

__construct (Constructor)   [line 78]

Net_DNS2_Packet_Request __construct( string $name, [string $type = null], [string $class = null])

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

Parameters:

string   $name     the domain name for the packet
string   $type     the DNS RR type for the packet
string   $class     the DNS class for the packet

[ Top ]

set   [line 95]

boolean set( string $name, [string $type = 'A'], [string $class = 'IN'])

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

Parameters:

string   $name     the domain name for the packet
string   $type     the DNS RR type for the packet
string   $class     the DNS class for the packet

[ Top ]


Documentation generated on Sun, 01 Dec 2013 01:30:19 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.