8 Receiving a Command

Any message, including commands or replies associated with an existing command, can be received using ams_receive(). When a new command message is received a new transaction (messid) will be set up in the receiving task. The path and messid associated with the command/reply are returned.

See ‘Sending a Command’ (Section 6) for a discussion of the significance of the other arguments of ams_receive.