Demo (echo server): Update ring buffer API.