문제

Hi I have written a decibel level meter in C which reads Linux alsa constantly and output decibel levels numbers in STDOUT.

Now I would like to view via HTTP and streaming live data to clients, with proper js+html decoration, it behaves as a noise meter, with graph and needles.

Therefore I would like to know if some one can point me direction integrate them into a HTTP streaming server able to server multiple clients in real time.

도움이 되었습니까?

해결책

You can use several C libraries. Some C libraries provide HTTP server abilities, e.g. libonion or libmicrohttpd. Other libraries provide HTTP client abilities, e.g. libcurl

All are using some event loop, e.g. libev, libevent or at least some multiplexing syscall like poll(2)

You could also make your application a FASTCGI app.

Reading Advanced Linux Programming should help.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top