Next: MSP, Sockets and Queues
Up: Implementation
Previous: Implementation
AMS messages may be transported within other structures such as MSP messages
but the AMS message itself consists of a message type, followed by a structure
dependent upon the type. The types are defined in ams_sys.h and
the associated structures in ams_struc.h.
The message type name has three elements separated by `_':
- LOC/REM
- Whether local or remote (this or other machine).
- type
- ACK
- Acknowledge
- GSOC_START
- Start GET/SET/OBEY/CANCEL/CONTROL
- GSOC_END
- End GET/SET/OBEY/CANCEL/CONTROL
- MSG
- Message.
- DEINIT
- De-initialise
- INIT
- Initialise
- CALL
- Request remote connection (REM only)
- ACCEPT
- Accept remote connection (REM only)
- IN/OUT
- Whether message is in or out
E.g. LOC_ACK_IN, REM_CALL_OUT.
Internal messages are of type LOC_MSG_IN/OUT
The AMS functions will automatically send the right type of message, in the
case of ams_send() and ams_reply() this will depend upon
their message_function and message_status arguments.
Next: MSP, Sockets and Queues
Up: Implementation
Previous: Implementation
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