User Tools

Site Tools


cdc:nos2.source:nam5871:hfastq

HFASTQ

Table Of Contents

  • [00010] PROC HFASTQ ( BLKPTR,ACNBAD)
  • [00063] PROC XTRACE
  • [00064] PROC BLINK
  • [00065] PROC OSCHAPP

Source Code

HFASTQ.txt
  1. *DECK HFASTQ
  2. USETEXT NIPDEF
  3. USETEXT PT
  4. USETEXT AT
  5. USETEXT ACB
  6. USETEXT SYSTIME
  7. USETEXT ACNB
  8. USETEXT AHEADER
  9. USETEXT NHEADER
  10. PROC HFASTQ ( BLKPTR,ACNBAD) ;
  11. STARTIMS ;
  12. #
  13. *1DC HFASTQ
  14. *
  15. * 1. PROC NAME AUTHOR DATE
  16. * HFASTQ A. BEN-ARTZI 82/09/15
  17. *
  18. * 2. FUNCTIONAL DESCRIPTION
  19. * QUEUE UPLINE MESSAGES TO ACNB
  20. *
  21. * 3. METHOD USED
  22. * CHANGE THE HEADER
  23. * LINK TO THE APPLICATION AND CALL FOR SWAPIN
  24. *
  25. * 4. ENTRY PARAMETERS
  26. * BLKPTR - MESSAGE TO QUEUE
  27. * ACNBAD - ADDRESS OF THE ACNB TO QUEUE TO
  28. *
  29. * 5. EXIT PARAMETERS
  30. * NONE
  31. *
  32. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  33. * NIPDEF AT PT ACB ACNB
  34. * AHEADER NHEADER SYSTIME
  35. *
  36. * 7. ROUTINES AND OVERLAYS CALLED
  37. * XTRACE - TRACE PROCEDURE CALL
  38. * BLINK - LINK MESSAGE TO APPLICATION
  39. * OSCHAPP - SWAPIN REQUEST FOR APPLICATION
  40. *
  41. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  42. * NORMALLY IT WILL BE CALLED BY HBSTTP.
  43. * WHEN ALL DATA IS ALLOWED ON CONNECTION IT WILL
  44. * BE CALLED FOR FAST QUEUING DIRECTLY FROM NEIB1.
  45. *
  46.  #
  47. STOPIMS ;
  48. #
  49.   INPUT PARAMETERS
  50. #
  51. ITEM BLKPTR ;
  52. ITEM ACNBAD ;
  53. #
  54.   INTERNAL PARAMETERS
  55. #
  56. ITEM AN ;
  57. ITEM NHWORD1 ;
  58. #
  59.   EXTERNAL REFERENCES
  60. #
  61. XREF
  62. BEGIN
  63. PROC XTRACE ;
  64. PROC BLINK ;
  65. PROC OSCHAPP ;
  66. END
  67.  
  68. BEGIN
  69.  
  70. CONTROL IFEQ DEBUG,1 ;
  71. XTRACE("FASTQ") ;
  72. CONTROL FI ;
  73.  
  74. P<ACNB> = ACNBAD ;
  75. #
  76.   GET ACB OF APPLICATION
  77. #
  78. AN = ACNBAN[0] ;
  79. P<ACB>= ATACBA[AN] ;
  80.  
  81. # SET UP APPLICATION BLOCK HEADER #
  82.  
  83. P<AHEADER> = BLKPTR + BLKHSIZE; # BASE ABH #
  84. NHWORD1 = ABHWORD[0]; # SAVE NETWORK HEADER #
  85. P<NHEADER> = LOC(NHWORD1); # LOCATION OF NETWORK HEADER #
  86. ABHWORD[0] = 0; # CLEAR ABH WORD #
  87. ABHABN[0] = NHBSN[0]; # SAVE NETW BSN IN ABH WORD #
  88.  
  89. IF DN[0] NQ 0 AND SN[0] NQ 0
  90. THEN # NOT A-A MESSAGE #
  91. ABHACT[0] = CT8ASCII; # APPLICATION CHAR TYPE #
  92. ELSE # A-A MESSAGE #
  93. ABHACT[0] = NHACT[0];
  94. ABHTLC[0] = CC[0]; # TEXT LENGTH IN CHARACTER #
  95. IF BT[0] LQ NETMSG
  96. OR BT[0] EQ NETQBLK
  97. OR BT[0] EQ NETQMSG
  98. THEN
  99. ABHDBC[0] = NHDBC[0];
  100. IF BT[0] NQ NETCMD
  101. THEN
  102. ABHABT[0] = BT[0];
  103. ELSE
  104. ABHABT[0] = APPCMD;
  105. ABHADR[0] = ACNBACN[0]; # APPLICATION CONNECTION NUMBER #
  106.  
  107. # SET INACTIVITY TIMER #
  108. ACNBINACT[0] = RTSECS[0] + INACTVAL;
  109.  
  110. BLINK(BLKPTR,P<ACNB>) ;# LINK IT TO ACNB #
  111. OSCHAPP(P<ACB>) ; # CALL SCHEDULER #
  112.  
  113. RETURN ;
  114. END
  115. TERM
cdc/nos2.source/nam5871/hfastq.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator