Home  /  Autodocs  /  exec.library

NAME

ReplyMsg
put a message to its reply port

SYNOPSIS

ReplyMsg(message)
A1

void ReplyMsg(struct Message *);

FUNCTION

This function sends a message to its reply port. This is usually done when the receiver of a message has finished and wants to return it to the sender (so that it can be re-used or deallocated, whatever).

This call may be made from interrupts.

INPUTS

message
a pointer to the message

NOTES

Avoid using PutMsg() to send a Message to the reply port specified by the mn_ReplyPort address. Always use ReplyMsg() instead.

IMPLEMENTATION

1. Places "NT_REPLYMSG" into the mn_Node.ln_Type field. 2. Puts the message to the port specified by mn_ReplyPort.

If mn_ReplyPort is NULL, sets mn_Node.ln_Type to "NT_FREEMSG" (use this feature only with extreme care).

SEE ALSO

GetMsg(), PutMsg(), <exec/ports.h>