Is this right?

Markus Fritsche Fritsche.Markus at gmx.net
Thu Nov 28 15:47:28 UTC 2002


It's me!

Is this correct:

Socktet>>primSocket:receiveDataInto:startingAt:count:
	"Receive data from the given socket into the given array starting at 
the given index. Return the number of bytes read or zero if no data is 
available."

Socket>>getData
...
	bytesRead _ self primSocket: socketHandle receiveDataInto: buf 
startingAt: 1 count: buf size.
	^ buf copyFrom: 1 to: (bytesRead max: 0)

I'm curios when the first one returns something < 0? On error?

Regards, Markus

-- 
http://reauktion.de/archer/




More information about the Squeak-dev mailing list