The following code fragment specifies starting at the beginning of the queued message by using the rewind call argument.
mtaEnqueueMessageCopy(nq_ctx, dq_ctx, 1);
The code fragment that follows illustrates a second, less efficient way of copying the message.
mtaDequeueRewind(dq_ctx) while (!mtaDequeueLineNext(dq_ctx, &line, &len)) mtaEnqueueWriteLine(nq_ctx, line, len, NULL); |