Request for review - std.serialization (orange)
Kagamin
spam at here.lot
Mon Apr 1 13:54:03 PDT 2013
On Monday, 1 April 2013 at 19:37:12 UTC, Matt Soucy wrote:
> It's not really strange, because of how it actually does the
> serialization. A message is recorded as length+serialized
> members. Members can happen in any order. Packed repeated
> messages would look like...what? How do you know when one
> message ends and another begins? If you try and denote it,
> you'd just end up with what you already have.
Well, messages can be just repeated, not packed. Packing is for
really small elements, I guess, - namely numbers.
> In your example, you'd want to send each individual result as a
> distinct message, so they could be read one at a time. You
> wouldn't want to pack, as packing is for sending a whole data
> set at once.
So you suggest to send 1 message per TCP packet?
More information about the Digitalmars-d
mailing list