5 Opening Communications

Once a task has initialised itself successfully, it can open communications with another initialised task by using ams_path(), specifying the name by which the other task is registered. The path number returned can then be used for further communications with the other task.

A short transaction consisting of a connection request message and an acknowledgement from the slave task is carried out. If the slave task is waiting to receive a command (see Section 8), the acknowledgement is sent automatically from within ams_receive(). The acknowledgement is expected within MESSYS__INIT_WAIT_TIME (currently 30000) milliseconds.