Fix issue #222 - Add ByteBuffer API for send and recv