-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Note that Opossum assumed that end-of-field was a space, so some of this
doesn't quite apply:

Strings (If a field cannot be parsed as another type, it is by default
returned as a string):

"string data" OR stringdata

Numbers:

1            decimal integer
1.0          decimal floating point
0xhexstring  hex integer

Characters (probably not used in Freenet)
'c'        where c is a character
OR
#int       where int is the character code

Booleans:
yes, no, true, false

Null:
null


The advantage here is that the Opossum serialization looks very much like
written english.  Opossum also supported dictionaries and lists, and
nested structures, but I won't bore you with them.  Nevertheless, here is
a Freenet message in Opossum style typing:


DataReply
DataSource=tcp/192.168.1.4:19914
HopsToLive=15
Key=0x01736d76ec6273b1009ffef17125521223
StreamingData=true
Comment=This is a string with "quotes" in it
Comment2="0xfeedfacedeadbeef"

Notice that the only visible difference is the 0x on hex strings, and the
quoted string in Comment2, needed since it would otherwise have been
treated as an integer.

        Scott




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE5ID+CpXyM95IyRhURAsP7AJ9fJDmlNCPeHbaXXxGxQ3Uppu8kygCeMqeD
XNVFJPxbTvOPDA2pjKbnWEU=
=ROtX
-----END PGP SIGNATURE-----


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

Reply via email to