CoAP streaming server in C