That's ok. The length and packets just need to tell us when we're
done.
Fair enough, I guess the packet length makes the receiver's buffering
quite simple. The alternative would have been to encode the encoding
length of each encoded object, e.g.
o
(x03 + x08 + 1) # Encoding length
x90 # object definition
x03 red # color field value
x08 corvette # model field value
but the packet notation does the same thing and is transparent across
different encoding types.
We have to buffer anyway until we get the terminal packet.
Don't you mean that you buffer until you get the enough bytes to start
decoding the current packet and pass it on to the application?
Otherwise this would defeat the purpose of streaming, wouldn't it?
Ben
_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest