qname = $qname; $this->qtype = $qtype; $this->qclass = $qclass; } /* }}} */ /* Net_DNS_Question::display() {{{*/ function display() { echo $this->string() . "\n"; } /*}}}*/ /* Net_DNS_Question::string() {{{*/ function string() { return($this->qname . ".\t" . $this->qclass . "\t" . $this->qtype); } /*}}}*/ /* Net_DNS_Question::data(&$packet, $offset) {{{*/ function data($packet, $offset) { $data = $packet->dn_comp($this->qname, $offset); $data .= pack('n', Net_DNS::typesbyname(strtoupper($this->qtype))); $data .= pack('n', Net_DNS::classesbyname(strtoupper($this->qclass))); return($data); } /*}}}*/ } /* }}} */ /* VIM settings{{{ * Local variables: * tab-width: 4 * c-basic-offset: 4 * soft-stop-width: 4 * c indent on * End: * vim600: sw=4 ts=4 sts=4 cindent fdm=marker et * vim<600: sw=4 ts=4 * }}} */ ?>