The Trunk: Network-nice.64.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Network-nice.64.mcz

commits-2
Nicolas Cellier uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-nice.64.mcz

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

Name: Network-nice.64
Author: nice
Time: 19 March 2010, 7:19:19.582 pm
UUID: 9125ebe8-7208-2342-9369-98e7fded9a93
Ancestors: Network-nice.63

Let nextPut: answer the put object.
Same for nextPutAll:, answer the collection argument

=============== Diff against Network-nice.63 ===============

Item was changed:
  ----- Method: SocketStream>>nextPutAll: (in category 'stream out') -----
  nextPutAll: aCollection
  "Put a String or a ByteArray onto the stream.
  Currently a large collection will allocate a large buffer."
 
  | toPut |
  toPut := binary ifTrue: [aCollection asByteArray] ifFalse: [aCollection asString].
  self adjustOutBuffer: toPut size.
  outBuffer replaceFrom: outNextToWrite to: outNextToWrite + toPut size - 1 with: toPut startingAt: 1.
  outNextToWrite := outNextToWrite + toPut size.
+ self checkFlush.
+ ^aCollection!
- self checkFlush!