On Tuesday 19 May 2009 01:01:48 Antoine van Gelder wrote:
After some great input from Marek I took a swing at rewriting my vis patch to allow serving of mesh topology simultaneously in dot_draw & json.
-j enables JSON server on port 2005
dot_draw continues to be served on port 2004 irrespective of whether
-j is specified or not.
Nice patch - I just uploaded it.
Some thoughts:
- It is not the prettiest of patches but it works. Thinking about
cleaner approaches makes my imagination drift in the direction of a simple plugin API such as OLSRd has, anyone else having any similar thoughts ? :)
- I'm serving json on port 2005 - any alternative suggestions ?
The code itself is far from being pretty. As usual it started as a proof of concept grew into a temporary solution and is still around. It worked quite well so far but if you have ideas & energy to improve it, please go ahead. :-)
Regards, Marek