But it is very uncomfortable. Every tool that would be used osm must develop client communication code. It is for re-use and more simplify development process of osm tools better to provide client code framework including the specific prototol spec. So the developer can concentrate to the relevant functions of the tool.

I cannot believe that osm does not provide framework or the developer of the tools moduled this code sections.