xb_read
int xb_read(void *data, unsigned len);
err = xb_read(&msg->hdr, sizeof(msg->hdr));
err = xb_read(body, msg->hdr.len);