changed result send-receive to byte
add headers to header
Speed-up Xor by size_t buffering