xs_read_reply
error = xs_read_reply(&msg->type, &msg->len, result);
error = xs_read_reply(&msg.type, len, &ret);