Socketpy is a tool, currently in development, which tries to ease the use of sockets and the definition of structs in C. For this, it provides a set of commands: config, help, create, flush, delete, route, deconfig, reset, embed, compile, decompile.
Usage:
[sudo] socketpy config
socketpy create socketpy
socketpy create model model_name attribute_type:attribute_name
socketpy compile
For more information you can visit the project!