The PURGE
procedure removes the unreceived messages from a specified implicit pipe.
Use the REMOVE_PIPE
function to delete an explicit pipe.
Parameters
pipename
Name of the pipe.
Examples
Two messages are sent on a pipe:
Receive the first message and unpack it:
Purge the pipe:
Try to retrieve the next message. The RECEIVE_MESSAGE
call returns status code 1
indicating it timed out because no message was available.