100
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1995 by Claus Gittinger
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
|
|
13 |
Object subclass:#SocketAddress
|
|
14 |
instanceVariableNames:''
|
|
15 |
classVariableNames:''
|
|
16 |
poolDictionaries:''
|
|
17 |
category:'ST80-Compatibility'
|
|
18 |
!
|
|
19 |
|
|
20 |
!SocketAddress class methodsFor:'documentation'!
|
|
21 |
|
|
22 |
copyright
|
|
23 |
"
|
|
24 |
COPYRIGHT (c) 1995 by Claus Gittinger
|
|
25 |
All Rights Reserved
|
|
26 |
|
|
27 |
This software is furnished under a license and may be used
|
|
28 |
only in accordance with the terms of that license and with the
|
|
29 |
inclusion of the above copyright notice. This software may not
|
|
30 |
be provided or otherwise made available to, or used by, any
|
|
31 |
other person. No title to or ownership of the software is
|
|
32 |
hereby transferred.
|
|
33 |
"
|
|
34 |
!
|
|
35 |
|
|
36 |
version
|
210
|
37 |
^ '$Header: /cvs/stx/stx/libbasic2/SocketAddress.st,v 1.4 1996-03-21 17:59:54 cg Exp $'
|
100
|
38 |
!
|
|
39 |
|
|
40 |
documentation
|
|
41 |
"
|
111
|
42 |
Abstract superclass for subclasses implementing various IPC addressing schemes.
|
|
43 |
See concrete examples IPSocketAddress and UDSocketAddress.
|
|
44 |
|
100
|
45 |
ST-80 compatibility class.
|
|
46 |
This may be required when existing code has to be ported to ST/X;
|
|
47 |
however, it may not be complete and more protocol may be added in the future.
|
|
48 |
The code here was created when public domain code (Manchester) had to
|
|
49 |
be ported to ST/X and missing classes/methods were encountered, and code added
|
|
50 |
by reasoning 'what the original class could probably do there'.
|
|
51 |
|
|
52 |
This is an additional goody class; therefore:
|
|
53 |
|
|
54 |
THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTOR ``AS IS'' AND
|
|
55 |
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
56 |
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
57 |
ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTOR BE LIABLE
|
|
58 |
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
59 |
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
60 |
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
61 |
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
62 |
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
63 |
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
64 |
SUCH DAMAGE.
|
|
65 |
"
|
|
66 |
! !
|
|
67 |
|
|
68 |
!SocketAddress class methodsFor:'queries'!
|
|
69 |
|
|
70 |
domainCodeFromName:aNameSymbol
|
|
71 |
aNameSymbol == #afUnix ifTrue:[^ #unix].
|
|
72 |
"/
|
|
73 |
"/ could someone tell me which symbols are used in ST-80's SocketAddress class ?
|
|
74 |
"/
|
|
75 |
self error:'no more mimicri implemented yet ...'
|
|
76 |
! !
|
|
77 |
|
|
78 |
!SocketAddress methodsFor:'queries'!
|
|
79 |
|
111
|
80 |
hostName
|
210
|
81 |
^ self subclassResponsibility
|
111
|
82 |
|
|
83 |
"Created: 2.11.1995 / 11:17:51 / cg"
|
|
84 |
!
|
|
85 |
|
100
|
86 |
portOrName
|
210
|
87 |
^ self subclassResponsibility
|
100
|
88 |
!
|
|
89 |
|
|
90 |
address
|
210
|
91 |
^ self subclassResponsibility
|
100
|
92 |
! !
|
|
93 |
|