HPlogo   HP 3000 Computer Systems: MPE/iX Architected Interface Facility:
Operating System Reference Manual
> Appendix C Programming Examples

ASYNC - Example Output

MPE documents

Complete PDF

 

Table of Contents

Index

 

⇓ Page Bottom

⇑ Page Top

 

Example 3 - ASYNC1, asynchronous ports

Example 4 - ASYNC2, asynchronous ports

You need 2 sessions, one to run ASYNC1, the other for ASYNC2.
You should run ASYNC1 first, then ASYNC2.
Both will wait for a pending connection from the other, otherwise you will need to Break, and Abort to exit the program.

ASYNC1


 Fox 9:async1.pub
 Enter a valid user id:
 123
 AIFPORTINT 1 (handler) - Previous state of port is ENABLED.
 AIFPORTRECEIVE (complete) -
 AIFPORT1 send message # 1

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 2

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 3

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 4

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 5

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 6

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 7

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 8

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 9

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 10

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 11

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 12

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 13

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 14

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 15

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 16

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 17

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 18

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 19

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 20

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 21

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 22

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 23

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 24

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 25

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 26

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 27

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 28

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 29

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 30

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 31

 AIFPORTRECEIVE (pending) -
 AIFPORT1 send message # 32

 AIFPORTRECEIVE - Bad Status: info=           2 subsys =         516
 Index:            1 info =           0 subsys =           0
 Index:            2 info =      -11025 subsys =         516
 AIFPORTINT 2 (handler) -  Previous state of port is DISABLED.
 [**** 60 second timeout ****]
 ASYNC1 terminated
 Fox 9:
  
Note
NOTE: Terminating Status Explaination.
 Bad Status:         info =           2 subsys =         516
   Info:   2 The second Itemnum had the error.
     A positive number returned indicates the
     index of the last element in the items_array parameter
     that caused an error.
   Subsys: 516 is the AIF sub-system

 Index:            1 info =           0 subsys =           0
   Info:   0 The first Itemnum had no error.

 Index:            2 info =      -11025 subsys =         516
   Info: -11025 Second Itemnum had this error:
     There are no more messages with pending interrupts.
     No message was received.
   Subsys: 516 is the AIF sub-system
   
    

ASYNC2


 Fox 25:async2.pub
 Enter a valid user ID:
 123
 AIFPORTRECEIVE (complete) -
 Asynchronous port open OK to send messages

 ASYNC2 terminated
 Fox 25:
  



Example 3 - ASYNC1, asynchronous ports

Example 4 - ASYNC2, asynchronous ports