On 19-09 23:59, Jakob Schlyter wrote:
On Thu, 18 Sep 2003, Andrei Pelinescu-Onciul wrote:
At transmit. Amost all the stuff that gets added
will show up only at
transmit time (you will see the original message, one exception is uri
processing -- you'll always see the modified uri).
The ideea is to keep the original message and a set of diffs to it
(struct lump). This "diffs" will be applied only on transmit. This will
speed things up quite a bit.
would it make sense to have a sync() function that applies the diffs to
the original message?
No, that is not possible until you know the socket through which the
message will be sent. The reason is that there are so-called
"conditional" lumps which say: "Put the IP of the outgoing interface
here" but they don't contain the IP. You don't know the IP during the
script processing.
One feasible solution is what Juha mentioned, i.e. a set of
operations that can modify the diffs.
Jan.