next up previous 199
Next: Sending a Command
Up: AMS The Unix ADAM Message System
Previous: Task Exit

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, the acknowledgement is sent automatically from within ams_receive(). The acknowledgement is expected within MESSYS__INIT_WAIT_TIME (currently 30000) milliseconds.



next up previous 199
Next: Sending a Command
Up: AMS The Unix ADAM Message System
Previous: Task Exit

AMS The Unix ADAM Message System
Starlink User Note 241
B D Kelly (ROE)
A J Chipperfield (RAL)
16 August 2001
E-mail:ussc@star.rl.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils