|
Class: DNSQuery
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
no warranty; provided AS-IS
code ported from squeak
copyrightCOPYRIGHT (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.
instance creation
-
name: aString type: anInteger class: bInteger
-
-
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'
accessing
-
dclass
-
-
dclass: anInteger
-
-
name
-
-
name: aString
-
-
type
-
-
type: anInteger
-
comparing
-
= 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.
-
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
-
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
-
writeNameOn: aStream
-
-
writeOn: aStream
-
|