eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'DNSQuery':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: DNSQuery


Inheritance:

   Object
   |
   +--DNSQuery

Package:
stx:goodies/communication
Category:
Net-Communication-DNS
Version:
rev: 1.8 date: 2023/10/31 11:25:20
user: cg
file: DNSQuery.st directory: goodies/communication
module: stx stc-classLibrary: communication

Description:


no warranty; provided AS-IS
code ported from squeak

copyright

COPYRIGHT (c) 2006 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

instance creation
o  name: aString type: anInteger class: bInteger

o  readFrom: aStream
(comment from inherited method)
read an object's printed representation from the argument, aStream
and return it.
The read object must be a kind of myself;
if it's not, an error is raised.
This is the reverse operation to 'storeOn:'.

WARNING: storeOn: does not handle circular references and multiple
references to the same object.
Use #storeBinary:/readBinaryFrom: for this.

SECURITY WARNING: if aStringOrStream is from an unsafe source,
BAD things may be evaluated, like
'Smalltalk exit' or even
'Filename rootDirectory recursiveXXXRemove'


Instance protocol:

accessing
o  dclass

o  dclass: anInteger

o  name

o  name: aString

o  type

o  type: anInteger

comparing
o  = aDNSQuery
(comment from inherited method)
return true if the receiver and the arg have the same structure.
Notice:
This method is partially open coded (inlined) by the compiler(s)
identical objects are always considered equal.
redefining it may not work as expected.

o  hash
(comment from inherited method)
return an Integer useful as a hash key for the receiver.
This hash should return same values for objects with same
contents (i.e. use this to hash on structure)

printing
o  printOn: aStream
(comment from inherited method)
append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back.

The default here is to output the receiver's class name.
BUT: this method is heavily redefined for objects which
can print prettier.

reading/writing
o  writeNameOn: aStream

o  writeOn: aStream



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 27 Jul 2024 06:40:30 GMT