Protocol compatibility: #anyHost, #port
authorStefan Vogel <sv@exept.de>
Tue, 23 Sep 2003 14:36:03 +0200
changeset 1319 4b9a0784a799
parent 1318 08099feb92d2
child 1320 fc8265f89040
Protocol compatibility: #anyHost, #port
UDSocketAddress.st
--- a/UDSocketAddress.st	Wed Sep 17 01:18:58 2003 +0200
+++ b/UDSocketAddress.st	Tue Sep 23 14:36:03 2003 +0200
@@ -64,6 +64,13 @@
 
 !UDSocketAddress class methodsFor:'instance creation'!
 
+anyHost
+    "there is nothing like a 'host' for unix domain sockets.
+     answer an empty address"
+
+    ^ self new
+!
+
 hostName:hostName serviceName:portNrOrName type:socketTypeSymbol
     (hostName notNil and:[hostName ~= 'localhost']) ifTrue:[
         self error:'Only local connections possible with UD sockets'.
@@ -116,6 +123,12 @@
 
 name:pathName
     self stringAt:3 put:pathName
+!
+
+port
+    "ccompatibility with inet sockets"
+
+    ^ self name
 ! !
 
 !UDSocketAddress methodsFor:'obsolete'!
@@ -154,5 +167,5 @@
 !UDSocketAddress class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic2/UDSocketAddress.st,v 1.12 2003-07-09 15:31:24 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/UDSocketAddress.st,v 1.13 2003-09-23 12:36:03 stefan Exp $'
 ! !