Added configurable recv and send buffers