Convert tcp echo server to new pull-stream style