examples: make it working

but ENOBUFS may occur, seems to need buffer tuning