[squeak-dev] The Trunk: Network-dtl.132.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Jul 17 12:29:53 UTC 2012

David T. Lewis uploaded a new version of Network to project The Trunk:

==================== Summary ====================

Name: Network-dtl.132
Author: dtl
Time: 17 July 2012, 8:29:12.42 am
UUID: f6c0af73-08c0-48bc-a0e5-3b359de0f4e6
Ancestors: Network-eem.131

Make NetNameResolver class>>stringFromAddress: work for SocketAddress as well as for  old style ByteArray addresses.

=============== Diff against Network-eem.131 ===============

Item was changed:
  ----- Method: NetNameResolver class>>stringFromAddress: (in category 'address string utils') -----
  stringFromAddress: addr
  	"Return a string representing the given host address as four decimal bytes delimited with decimal points."
  	"NetNameResolver stringFromAddress: NetNameResolver localHostAddress"
+ 	| s |	
+ 	(addr isKindOf: SocketAddress) ifTrue: [^addr printString copyUpTo: $( ].
- 	| s |
  	s := WriteStream on: ''.
  	1 to: 3 do: [ :i | (addr at: i) printOn: s. s nextPut: $.].
  	(addr at: 4) printOn: s.
  	^ s contents

More information about the Squeak-dev mailing list