--- a/Socket.st Mon Feb 13 20:49:29 2017 +0100
+++ b/Socket.st Mon Feb 13 20:49:42 2017 +0100
@@ -1215,22 +1215,24 @@
The address is supposed to be a byteArray consisting of 3 bytes,
the network bytes come first (no matter what the local byteorder is).
The last byte is the node number.
- Nil is returned for an unknown host or if its not an appletalk host.
+ Nil is returned for an unknown host or if it's not an appletalk host.
This is is the reverse operation to #appletalkAddressOfHost:.
WARNING: untested code - I have no appletalk to test this."
NameLookupError
- handle:[:ex |
- ^ nil
- ]
- do:[
- ^ (AppletalkSocketAddress hostAddress:addrByteArray) hostName
- ]
+ handle:[:ex |
+ ^ nil
+ ]
+ do:[
+ ^ (AppletalkSocketAddress hostAddress:addrByteArray) hostName
+ ]
"
Socket appletalkAddressOfHost:'yourAppleHere'
Socket hostWithAppletalkAddress:#[1 2 3]
"
+
+ "Modified (comment): / 13-02-2017 / 20:30:56 / cg"
!
hostWithIpAddress:addrByteArray
@@ -1238,16 +1240,16 @@
"return the hostname for an IP (internet-) address.
The address is supposed to be a byteArray consisting of 4 bytes,
the network bytes come first (no matter what the local byteorder is).
- Nil is returned for an unknown host or if its not an internet host.
+ Nil is returned for an unknown host or if it's not an internet host.
This is the reverse operation to #ipAddressOfHost:."
NameLookupError
- handle:[:ex |
- ^ nil
- ]
- do:[
- ^ (IPSocketAddress hostAddress:addrByteArray) hostName
- ]
+ handle:[:ex |
+ ^ nil
+ ]
+ do:[
+ ^ (IPSocketAddress hostAddress:addrByteArray) hostName
+ ]
"
Socket ipAddressOfHost:'clam'
@@ -1259,6 +1261,8 @@
Socket hostWithIpAddress:(Socket ipAddressOfHost:'1.2.3.4')
Socket hostWithIpAddress:(Socket ipAddressOfHost:'www.altavista.com')
"
+
+ "Modified (comment): / 13-02-2017 / 20:31:01 / cg"
!
hostWithIpV6Address:addrByteArray
@@ -1266,16 +1270,16 @@
"return the hostname for an IPv6 (internet-) address.
The address is supposed to be a byteArray consisting ??? bytes,
the network bytes come first (no matter what the local byteorder is).
- Nil is returned for an unknown host or if its not an internet host.
+ Nil is returned for an unknown host or if it's not an internet host.
This is the reverse operation to #ipV6AddressOfHost:."
NameLookupError
- handle:[:ex |
- ^ nil
- ]
- do:[
- ^ (IPv6SocketAddress hostAddress:addrByteArray) hostName
- ]
+ handle:[:ex |
+ ^ nil
+ ]
+ do:[
+ ^ (IPv6SocketAddress hostAddress:addrByteArray) hostName
+ ]
"
Socket ipV6AddressOfHost:'clam'
@@ -1285,6 +1289,8 @@
Socket hostWithIpV6Address:#[1 2 3 4 5 6 7 8 9 10 11 12 13 14]
Socket ipV6AddressOfHost:'www.exept.de'
"
+
+ "Modified (comment): / 13-02-2017 / 20:31:08 / cg"
!
ipAddressOfHost:aHostName