This sourcecode should be used as a skelleton for the part of the control engine, that unwrappes the configuration-data, and executes the instructions there to get a "response", which the DIM-Server can send back. First call the function getBlockCount() to get the number of blocks, then you can call unwrapp() to unwrapp the "protocol" and execute the instructions. In unwrapp() you should also, create the response-structure, to give it back to the DIM-server, so he give the acknowledge.