[Pkg] The Trunk: Network-ul.115.mcz
commits at source.squeak.org
commits at source.squeak.org
Sat Jun 18 08:55:37 UTC 2011
Levente Uzonyi uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-ul.115.mcz
==================== Summary ====================
Name: Network-ul.115
Author: ul
Time: 17 June 2011, 4:40:43.589 pm
UUID: 5eff0f93-17f3-1340-9984-6c92adab5898
Ancestors: Network-ul.114
- Use #repeat instead of [ true ] whileTrue and friends.
=============== Diff against Network-ul.114 ===============
Item was changed:
----- Method: Socket>>waitForDataIfClosed: (in category 'waiting') -----
waitForDataIfClosed: closedBlock
"Wait indefinitely for data to arrive. This method will block until
data is available or the socket is closed."
+ [
+ (self primSocketReceiveDataAvailable: socketHandle)
+ ifTrue: [^self].
+ self isConnected
+ ifFalse: [^closedBlock value].
+ self readSemaphore wait ] repeat
- [true]
- whileTrue: [
- (self primSocketReceiveDataAvailable: socketHandle)
- ifTrue: [^self].
- self isConnected
- ifFalse: [^closedBlock value].
- self readSemaphore wait].
!
More information about the Packages
mailing list