Stream.st
changeset 5823 bc3b00025476
parent 5628 1dc85c4c4b7c
child 5873 1ed3dd2e1b17
equal deleted inserted replaced
5822:4e56f8aadda5 5823:bc3b00025476
   701 
   701 
   702 nextLongNet
   702 nextLongNet
   703     "return a signed long (4 bytes) in network byte order from the stream.
   703     "return a signed long (4 bytes) in network byte order from the stream.
   704      The receiver must support reading of binary bytes."
   704      The receiver must support reading of binary bytes."
   705 
   705 
   706     ^ self nextLongMSB:(Socket networkLongOrderIsMSB)
   706     ^ self nextLongMSB:true "/ (Socket networkLongOrderIsMSB)
   707 
   707 
   708     "Created: 10.1.1996 / 19:49:28 / cg"
   708     "Created: 10.1.1996 / 19:49:28 / cg"
   709 !
   709 !
   710 
   710 
   711 nextNumber:n 
   711 nextNumber:n 
   850 
   850 
   851 nextUnsignedLongNet
   851 nextUnsignedLongNet
   852     "return an unsigned long (4 bytes) in network byte order from the stream.
   852     "return an unsigned long (4 bytes) in network byte order from the stream.
   853      The receiver must support reading of binary bytes."
   853      The receiver must support reading of binary bytes."
   854 
   854 
   855     ^ self nextUnsignedLongMSB:(Socket networkLongOrderIsMSB)
   855     ^ self nextUnsignedLongMSB:true "/ (Socket networkLongOrderIsMSB)
   856 
   856 
   857     "Created: 10.1.1996 / 19:49:02 / cg"
   857     "Created: 10.1.1996 / 19:49:02 / cg"
   858     "Modified: 10.1.1996 / 19:49:50 / cg"
   858     "Modified: 10.1.1996 / 19:49:50 / cg"
   859 !
   859 !
   860 
   860 
  1080 nextPutLongNet:aNumber
  1080 nextPutLongNet:aNumber
  1081     "Write the argument, aNumber as a long (four bytes) in the network byte order.
  1081     "Write the argument, aNumber as a long (four bytes) in the network byte order.
  1082      Returns the receiver on ok, nil on error.
  1082      Returns the receiver on ok, nil on error.
  1083      The receiver must support writing of binary bytes."
  1083      The receiver must support writing of binary bytes."
  1084 
  1084 
  1085     ^ self nextPutLong:aNumber MSB:(Socket networkLongOrderIsMSB).
  1085     ^ self nextPutLong:aNumber MSB:true "/ (Socket networkLongOrderIsMSB).
  1086 
  1086 
  1087     "Modified: 10.1.1996 / 19:47:10 / cg"
  1087     "Modified: 10.1.1996 / 19:47:10 / cg"
  1088     "Created: 10.1.1996 / 19:50:23 / cg"
  1088     "Created: 10.1.1996 / 19:50:23 / cg"
  1089 !
  1089 !
  1090 
  1090 
  2176 ! !
  2176 ! !
  2177 
  2177 
  2178 !Stream class methodsFor:'documentation'!
  2178 !Stream class methodsFor:'documentation'!
  2179 
  2179 
  2180 version
  2180 version
  2181     ^ '$Header: /cvs/stx/stx/libbasic/Stream.st,v 1.91 2000-09-26 10:36:28 cg Exp $'
  2181     ^ '$Header: /cvs/stx/stx/libbasic/Stream.st,v 1.92 2001-03-07 11:08:11 ca Exp $'
  2182 ! !
  2182 ! !
  2183 Stream initialize!
  2183 Stream initialize!