Francisco León scripsit:
> Hi Paul. When you mention IP "tree" structures ... did you mean collection
> objects like TreeMap<K,V> or HashMap<K,V> from Java? I really don't know if
> java has native functions for blocking those objects as const immutable
> objects.
No. The Packet class has, in addition to the payload and a type indication
(payload, open bracket, close bracket, end of stream) also has left-sibling
and first-child pointers that allow one to construct an arbitrary tree
(or dag, but typically tree) of packets. Then it's the root that gets
passed through connections, carrying an arbitrary packet structure with it.
This is just a convenience, not a logical necessity.
This tree structure is logically outside the payload, and so it's usually
not taken into consideration when determining if payloads are immutable or not.
--
John Cowan
http://www.ccil.org/~cowan co...@ccil.org
If I have seen farther than others, it is because I am surrounded by dwarves.
--Murray Gell-Mann