Initial dev version with adopted cURL hiperfifo.c example