The Inbox: Nebraska-nice.66.mcz
| Newsgroups | gmane.comp.lang.smalltalk.squeak.general |
|---|---|
| Message-ID | <[email protected]> |
Nicolas Cellier uploaded a new version of Nebraska to project The Inbox:
http://source.squeak.org/inbox/Nebraska-nice.66.mcz
==================== Summary ====================
Name: Nebraska-nice.66
Author: nice
Time: 23 August 2026, 12:14:15.822447 pm
UUID: 35496c48-95d9-4572-9b26-da0e2920c8f1
Ancestors: Nebraska-ct.65
changes related to Morphic-nice.2232
processEvents shall now answer whether any user activity took place in the last cycle or not.
=============== Diff against Nebraska-ct.65 ===============
Item was changed:
----- Method: MorphicEventDecoder>>processIO (in category 'handling messages') -----
processIO
+ ^connection processIO!
- connection processIO!
Item was changed:
----- Method: RemoteControlledHandMorph>>processEvents (in category 'event handling') -----
processEvents
+ | hadAny |
+ hadAny := eventDecoder processIO.
- | |
- eventDecoder processIO.
eventDecoder applyMessagesTo: self.
+ ^hadAny!
- !
Item was changed:
----- Method: StringSocket>>processIO (in category 'private-IO') -----
processIO
+ "do as much network IO as possible"
- "do some as much network IO as possible"
socketWriterProcess ifNil: [^self].
self processOutput.
+ ^self processInput.!
- self processInput.!
Item was changed:
----- Method: StringSocket>>processInput (in category 'private-IO') -----
processInput
+ | totalReceived chunkOfData hadAny |
- | totalReceived chunkOfData |
"do as much input as possible"
self flag: #XXX. "should have resource limits here--no more than X objects and Y bytes"
+ hadAny := false.
chunkOfData := socket receiveAvailableDataIntoBuffer: self readBuffer.
self addToInBuf: chunkOfData.
totalReceived := chunkOfData size.
totalReceived > 0 ifTrue: [
NebraskaDebug at: #SendReceiveStats add: {'GET'. totalReceived}.
].
+ [ self gotSomething ] whileTrue: [hadAny := true]. "decode as many string arrays as possible"
- [ self gotSomething ] whileTrue: []. "decode as many string arrays as possible"
+ self shrinkInBuf.
+ ^hadAny!
- self shrinkInBuf.!
Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]