[BUG]Socket(Object)>>doesNotUnderstand: #-
Martin.Drautzburg at web.de
Martin.Drautzburg at web.de
Tue Jul 22 17:25:28 UTC 2003
I ran into this when playing with Nebraska. It could be caused
by something
The problem seems to be rooted in the fact that these routines
Socket>>receiveAvailableDataInto: buffer.
Socket>>receiveAvailableDataInto: buffer startingAt: startIndex
return self
But Socket>>receiveAvailableData expects a number of bytes
receiveAvailableData
"Receive all available data (if any). Do not wait."
| buffer bytesRead |
buffer _ String new: 2000.
bytesRead _ self receiveAvailableDataInto: buffer.
^ buffer copyFrom: 1 to: bytesRead
22 July 2003 7:07:34 pm
VM: unix - Squeak3.5 of '11 April 2003' [latest update: #5180]
Image: Squeak3.6beta [latest update: #5371]
Socket(Object)>>doesNotUnderstand: #-
Receiver: a Socket[otherEndClosedButNotThisEnd]
Arguments and temporary variables:
aMessage: a Message with selector: #- and arguments: #(1)
Receiver's instance variables:
semaphore: a Semaphore()
socketHandle: a ByteArray(83 151 36 63 0 0 0 0 248 51 21 8)
readSemaphore: a Semaphore()
writeSemaphore: a Semaphore()
primitiveOnlySupportsOneSemaphore: false
String(SequenceableCollection)>>copyFrom:to:
Receiver:
'
..etc...
Arguments and temporary variables:
start: 1
stop: a Socket[otherEndClosedButNotThisEnd] <---------------
newSize: nil
Receiver's instance variables:
'
..etc...
Socket>>receiveAvailableData
Receiver: a Socket[otherEndClosedButNotThisEnd]
Arguments and temporary variables:
buffer:
'.
..etc...
bytesRead: a Socket[otherEndClosedButNotThisEnd]
Receiver's instance variables:
semaphore: a Semaphore()
socketHandle: a ByteArray(83 151 36 63 0 0 0 0 248 51 21 8)
readSemaphore: a Semaphore()
writeSemaphore: a Semaphore()
primitiveOnlySupportsOneSemaphore: false
More information about the Squeak-dev
mailing list
|