author | Stefan Vogel <sv@exept.de> |
Sun, 22 Aug 2004 20:09:08 +0200 | |
changeset 1470 | 8abddb052ac8 |
parent 1311 | e20fa06ce5f8 |
permissions | -rw-r--r-- |
1311 | 1 |
" |
2 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
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 |
||
1163 | 13 |
"{ Package: 'stx:libbasic2' }" |
14 |
||
15 |
Object subclass:#SocketAddressInfo |
|
1470
8abddb052ac8
Add instance variable #serviceName for error processing.
Stefan Vogel <sv@exept.de>
parents:
1311
diff
changeset
|
16 |
instanceVariableNames:'domain type protocol socketAddress canonicalName flags |
8abddb052ac8
Add instance variable #serviceName for error processing.
Stefan Vogel <sv@exept.de>
parents:
1311
diff
changeset
|
17 |
serviceName' |
1163 | 18 |
classVariableNames:'' |
19 |
poolDictionaries:'' |
|
20 |
category:'OS-Sockets' |
|
21 |
! |
|
22 |
||
1311 | 23 |
!SocketAddressInfo class methodsFor:'documentation'! |
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
! ! |
|
1163 | 38 |
|
39 |
!SocketAddressInfo methodsFor:'accessing'! |
|
40 |
||
41 |
canonicalName |
|
42 |
^ canonicalName |
|
43 |
! |
|
44 |
||
45 |
canonicalName:something |
|
46 |
canonicalName := something. |
|
47 |
! |
|
48 |
||
49 |
domain |
|
50 |
^ domain |
|
51 |
! |
|
52 |
||
53 |
domain:something |
|
54 |
domain := something. |
|
55 |
! |
|
56 |
||
57 |
flags |
|
58 |
^ flags |
|
59 |
! |
|
60 |
||
61 |
flags:something |
|
62 |
flags := something. |
|
63 |
! |
|
64 |
||
65 |
protocol |
|
66 |
^ protocol |
|
67 |
! |
|
68 |
||
69 |
protocol:something |
|
70 |
protocol := something. |
|
71 |
! |
|
72 |
||
1470
8abddb052ac8
Add instance variable #serviceName for error processing.
Stefan Vogel <sv@exept.de>
parents:
1311
diff
changeset
|
73 |
serviceName |
8abddb052ac8
Add instance variable #serviceName for error processing.
Stefan Vogel <sv@exept.de>
parents:
1311
diff
changeset
|
74 |
^ serviceName |
8abddb052ac8
Add instance variable #serviceName for error processing.
Stefan Vogel <sv@exept.de>
parents:
1311
diff
changeset
|
75 |
! |
8abddb052ac8
Add instance variable #serviceName for error processing.
Stefan Vogel <sv@exept.de>
parents:
1311
diff
changeset
|
76 |
|
8abddb052ac8
Add instance variable #serviceName for error processing.
Stefan Vogel <sv@exept.de>
parents:
1311
diff
changeset
|
77 |
serviceName:something |
8abddb052ac8
Add instance variable #serviceName for error processing.
Stefan Vogel <sv@exept.de>
parents:
1311
diff
changeset
|
78 |
"service name is only used when raising an error" |
8abddb052ac8
Add instance variable #serviceName for error processing.
Stefan Vogel <sv@exept.de>
parents:
1311
diff
changeset
|
79 |
|
8abddb052ac8
Add instance variable #serviceName for error processing.
Stefan Vogel <sv@exept.de>
parents:
1311
diff
changeset
|
80 |
serviceName := something. |
8abddb052ac8
Add instance variable #serviceName for error processing.
Stefan Vogel <sv@exept.de>
parents:
1311
diff
changeset
|
81 |
! |
8abddb052ac8
Add instance variable #serviceName for error processing.
Stefan Vogel <sv@exept.de>
parents:
1311
diff
changeset
|
82 |
|
1163 | 83 |
socketAddress |
84 |
^ socketAddress |
|
85 |
! |
|
86 |
||
87 |
socketAddress:something |
|
88 |
socketAddress := something. |
|
89 |
! |
|
90 |
||
91 |
type |
|
92 |
^ type |
|
93 |
! |
|
94 |
||
95 |
type:something |
|
96 |
type := something. |
|
97 |
! ! |
|
98 |
||
1225 | 99 |
!SocketAddressInfo methodsFor:'printing'! |
100 |
||
101 |
printOn:aStream |
|
102 |
aStream nextPutAll:self className. |
|
103 |
aStream nextPutAll:'(domain='. |
|
104 |
domain printOn:aStream. |
|
105 |
aStream nextPutAll:' type='. |
|
106 |
type printOn:aStream. |
|
107 |
aStream nextPutAll:' addr='. |
|
108 |
socketAddress printOn:aStream. |
|
109 |
aStream nextPutAll:')'. |
|
110 |
! ! |
|
111 |
||
1163 | 112 |
!SocketAddressInfo class methodsFor:'documentation'! |
113 |
||
114 |
version |
|
1470
8abddb052ac8
Add instance variable #serviceName for error processing.
Stefan Vogel <sv@exept.de>
parents:
1311
diff
changeset
|
115 |
^ '$Header: /cvs/stx/stx/libbasic2/SocketAddressInfo.st,v 1.5 2004-08-22 18:09:08 stefan Exp $' |
1163 | 116 |
! ! |