#REFACTORING
authorClaus Gittinger <cg@exept.de>
Wed, 23 Mar 2016 14:33:58 +0100
changeset 3772 ea7a85e2bb8f
parent 3771 bb14e511c3d1
child 3773 511f3e8b9b34
#REFACTORING class: IPSocketAddress changed: #port (send #unsignedInt16At:MSB: instead of #unsignedShortAt:bigEndian:) #port: (send #unsignedInt16At:put:MSB: instead of #unsignedShortAt:put:bigEndian:)
IPSocketAddress.st
--- 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'!