# HG changeset patch # User Stefan Vogel # Date 1064320563 -7200 # Node ID 4b9a0784a799a1ef0bb6e15dde85dc458c627b22 # Parent 08099feb92d29296a38efc021b929647036442e4 Protocol compatibility: #anyHost, #port diff -r 08099feb92d2 -r 4b9a0784a799 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 $' ! !