This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

renderd / mod_tile socket protocol

1

Hi,

I am looking to understand the protocol between renderd and mod_tile. I can capture the data thats going across the network, thats easy, and I have found this https://github.com/openstreetmap/mod_tile/blob/master/protocol.h but of course that does not tell me how the c variables translate into bits on the network and I am unable to find much more with Google.

Any documentation on what mod_tile sends down the socket to renderd and what renderd sends back would be very helpful.

Thanks

Scott

asked 21 Jul '13, 17:03

Scott07's gravatar image

Scott07
36336
accept rate: 0%


2 Answers:

3

The struct you're seeing in protocol.h is what gets sent over the network, verbatim. See https://github.com/openstreetmap/mod_tile/blob/master/mod_tile.c#L216 which does the sending. The same struct is used as a return message, see https://github.com/openstreetmap/mod_tile/blob/master/mod_tile.c#L246 which receives the message.

answered 21 Jul '13, 19:24

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

1

answered 19 Oct '14, 18:10

mat42x's gravatar image

mat42x
16
accept rate: 0%

Source code available on GitHub .