Nono. You misunderstand. The last header is the name of trailing field, which
can be any string without an "=" or newline in it. The difference was before it
would assume it had a trailing field if the last header was not EndMessage. Now
it will assume it has a trailing field only if it has a DataLength and that is
larger then 0.

So you still read the message until you come across a field without a value, ie

name1=value
DataLength=value
name3=value
name4
<stop here>

The difference is, before it would check !name4.equals("EndMessage") to see if
there was a trailing. Now it reads to see if any of the fields is DataLength
and larger then 0.

On Sun, 07 May 2000, Adam Langley wrote:
> 
> On Sat, May 06, 2000 at 06:33:46PM -0500, Brandon wrote:
> > Yes, it's very sensible. I just thought it was decided to go with
> > EndMessage instead of DataLength=0. I could very well be wrong.
> 
> EndMessage is far better than DataLength=0 - please lets stick with it.
> DataLength=0 simply means there isn't a trailing field - does having a 
> DataLength=123 mean the same thing? This is just plain ugly, meaning that
> (for no reason) DataLength has to be the last header. Keep the EndMessage.
> 
> AGL
> 
> -- 
> If you think things can't get worse it's probably only because you lack 
> sufficient imagination.
> 

----------------------------------------
Content-Type: application/pgp-signature; name="unnamed"
Content-Transfer-Encoding: 7bit
Content-Description: 
----------------------------------------

-- 

Oskar Sandberg

md98-osa at nada.kth.se

#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)

_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to