#REFACTORING
class: IPSocketAddress
changed:
#port (send #unsignedInt16At:MSB: instead of #unsignedShortAt:bigEndian:)
#port: (send #unsignedInt16At:put:MSB: instead of #unsignedShortAt:put:bigEndian:)
--- a/IPSocketAddress.st Wed Mar 23 14:33:08 2016 +0100
+++ b/IPSocketAddress.st Wed Mar 23 14:33:58 2016 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
"
COPYRIGHT (c) 1995 by Claus Gittinger
All Rights Reserved
@@ -365,11 +367,11 @@
!
port
- ^ self unsignedShortAt:3 bigEndian:true
+ ^ self unsignedInt16At:3 MSB:true
!
port:aPortNr
- self unsignedShortAt:3 put:aPortNr bigEndian:true
+ self unsignedInt16At:3 put:aPortNr MSB:true
! !
!IPSocketAddress methodsFor:'comparing'!