Category change
authorStefan Vogel <sv@exept.de>
Thu, 27 Mar 2003 16:14:16 +0100
changeset 1167 56c172bc5cfe
parent 1166 be4f446d44f1
child 1168 9890fe8a7cbc
Category change
AppletalkSocketAddress.st
IPv6SocketAddress.st
SocketAddress.st
--- a/AppletalkSocketAddress.st	Thu Mar 27 15:23:30 2003 +0100
+++ b/AppletalkSocketAddress.st	Thu Mar 27 16:14:16 2003 +0100
@@ -17,7 +17,7 @@
 	instanceVariableNames:''
 	classVariableNames:''
 	poolDictionaries:''
-	category:'Streams-Sockets'
+	category:'OS-Sockets'
 !
 
 !AppletalkSocketAddress class methodsFor:'documentation'!
@@ -193,5 +193,5 @@
 !AppletalkSocketAddress class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic2/AppletalkSocketAddress.st,v 1.4 2003-03-27 14:18:25 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/AppletalkSocketAddress.st,v 1.5 2003-03-27 15:14:02 stefan Exp $'
 ! !
--- a/IPv6SocketAddress.st	Thu Mar 27 15:23:30 2003 +0100
+++ b/IPv6SocketAddress.st	Thu Mar 27 16:14:16 2003 +0100
@@ -18,7 +18,7 @@
 	instanceVariableNames:''
 	classVariableNames:''
 	poolDictionaries:''
-	category:'Streams-Sockets'
+	category:'OS-Sockets'
 !
 
 !IPv6SocketAddress class methodsFor:'documentation'!
@@ -82,5 +82,5 @@
 !IPv6SocketAddress class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic2/IPv6SocketAddress.st,v 1.4 2003-03-27 14:18:24 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/IPv6SocketAddress.st,v 1.5 2003-03-27 15:14:02 stefan Exp $'
 ! !
--- a/SocketAddress.st	Thu Mar 27 15:23:30 2003 +0100
+++ b/SocketAddress.st	Thu Mar 27 16:14:16 2003 +0100
@@ -217,6 +217,31 @@
     "
 !
 
+getAddressInfo:hostName serviceName:serviceName type:typeArg protocol:protoArg flags:flags 
+    "answer an Array of socket addresses for serviceName on hostName
+     Domain, type, protocol may be nil or specify a hint for the socket 
+     addresses to be returned."
+
+    ^ OperatingSystem socketAccessor 
+            getAddressInfo:hostName serviceName:serviceName 
+            domain:self domainCode type:typeArg protocol:protoArg flags:flags 
+
+    "
+     IPSocketAddress getAddressInfo:'localhost' serviceName:nil 
+                     type:nil protocol:nil flags:nil
+     IPSocketAddress getAddressInfo:'localhost' serviceName:nil 
+                     type:#stream protocol:nil flags:nil
+     IPSocketAddress getAddressInfo:'localhost' serviceName:nil 
+                     type:#stream protocol:#tcp flags:nil
+     IPSocketAddress getAddressInfo:'blurb.exept.de' serviceName:nil 
+                     type:nil protocol:nil flags:nil
+     IPSocketAddress getAddressInfo:'1.2.3.4' serviceName:'6' 
+                     type:nil protocol:nil flags:nil
+     IPSocketAddress getAddressInfo:'localhost' serviceName:'echo' 
+                     type:nil protocol:nil flags:nil
+    "
+!
+
 getNameInfo:socketAddress wantHostName:wantHostName wantServiceName:wantServiceName datagram:useDatagram flags:flags 
     "answer an Array containing the hostName and serviceName
      in socketAddress. SocketType may be one "
@@ -350,5 +375,5 @@
 !SocketAddress class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic2/SocketAddress.st,v 1.10 2003-03-27 13:30:01 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/SocketAddress.st,v 1.11 2003-03-27 15:14:16 stefan Exp $'
 ! !