oh - just one other thing: the prs_xxxx functions which you will
see in the mapi code have a "debug" mode.  consequently, as the data
is being marshalled (or unmarshalled), the auto-generated code
automatically outputs a human-readable dump of the data.

so you get sniffing and decoding - like ethereal/wireshark - "for free".

and, i made sure that the templates performed "indentation" of
structs.  so, when you identified a struct correctly, it would be
tab-indented.

i read the wiki page on SOL on gnashdev - the lovely comments about
how to use gdb to do binary dumps - it looks like _real_ hard work :)

make life easier for yourself: integrate a tab-indented debug-dump into
the marshalling code.  that way, when things "go wrong", and you encounter
some packets which don't "fit", it's blindingly obvious, because the
indentation goes absolutely nuts.

l.

_______________________________________________
Swfdec mailing list
Swfdec@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/swfdec

Reply via email to