So you propose to implement send and recv as Avian_ native methods and read/write directly to the buffer?

Actually, this method isn't easy for me now. I'll try to do that. Is there an example which is really close to my task (except the ones that @dscho mentioned)