An Example using ROSE



next up previous
Next: Reliable transfer of Up: Remote operation of Previous: ROSE: The Protocol

An Example using ROSE

We conclude this section with an example application protocol built with ACSE and ROSE. The example protocol will simply check the number of entries in the print queue of a remote system. The protocol is defined using ASN.1 and appears in Figure gif. Notice that the definition of this protocol does not include the implementation details. The definition specifies that an operation (getcount) exists and takes the argument QueueName and provides a result, Count, or one of three error indications: BadQueueName, QueueNotAvailable, or Other. Each error indication is assigned a unique identification number. Error Other carries a parameter Explanation as well. To complete implementation of this example, application programs must be developed to run in the initiating side and in the responding side. The initiator uses ROSE services to invoke execution of this operation on the responder. The responder uses ROSE services to receive the invocation and to respond with a result or error notification.