User Tools

Site Tools


cdc:nos2.source:nam5871:hsfcina

HSFCINA

Table Of Contents

  • [00011] PRGM HSFCINA
  • [00059] PROC BLINK
  • [00060] PROC OSCHAPP
  • [00061] PROC MGETS
  • [00062] PROC XTRACE

Source Code

HSFCINA.txt
  1. *DECK HSFCINA
  2. USETEXT NIPDEF
  3. USETEXT ACB
  4. USETEXT ACNB
  5. USETEXT ACNT
  6. USETEXT APPSTAT
  7. USETEXT AHEADER
  8. USETEXT DRHDR
  9. USETEXT PARAMS
  10. USETEXT SUPMSG
  11. PRGM HSFCINA; # SEND FC/INACT SUP MSG TO APP #
  12. *IF DEF,IMS
  13. #
  14. *****
  15. * 1.PROCNAME AUTHOR DATE
  16. * HSFCINA L.T.NGUYEN 84/08/08
  17. *
  18. * 2.FUNCTIONAL DESCRIPTION:
  19. * SENDING FC/INACT/SM TO INDICATED APLLICATION.
  20. *
  21. * 3.METHOD USED:
  22. * GET BUFFER TO HOLD SM.
  23. * SET UP INFORMATION IN ABH AND SUPMSG.
  24. * CALL BLINK TO LINK SM TO APPLCATION'S ACB.
  25. *
  26. * 4. ENTRY PARAMETERS.
  27. * PARAMS1 ADDRESS OF ACB
  28. * PARAMS2 CONNECTION NUMBER OF INACTIVE CONNECTION
  29. *
  30. * 5. EXIT PARAMETERS.
  31. * NONE
  32. * 6. COMDECKS CALLED AND SYMPL TEXT USED
  33. * ACB APPLICATION CONTROL BLOCK TEMPLATE
  34. * ACNB APPLICATION CONNECTION BLOCK TEMPLATE
  35. * ACNT APPLICATION CONNECTION TABLE TEMPLATE
  36. * AHEADER APPLICATION BLOCK HEADER TEMPLATE
  37. * DRHDR BUFFER HEADER TEMPLATE
  38. * NIPDEF CONSTANT DEFINITIONS
  39. * SUPMSG SUPERVISORY MESSAGE TEMPLATES
  40. *
  41. * 7. ROUTINES AND OVERLAYS CALLED.
  42. * BLINK.
  43. * OSCHAPP.
  44. * MGETS.
  45. *
  46. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION.
  47. *
  48. * THIS PROGRAM IS A SECONDARY OVERLAY LOAED BY SUBROUTINE
  49. * OVLCALL. WHEN EXECUTION HAS COMPLETED, A JUMP IS MADE
  50. * TO LOCATION RJMAIN TO RETURN TO THE CALLING PROGRAM.
  51. *
  52. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE SECONDARY
  53. * OVERLAY BUFFER SIZE MINUS 5 (473B WORDS).
  54. ****
  55.  #
  56. *ENDIF
  57. XREF
  58. BEGIN
  59. PROC BLINK ; # PROC TO LINK SM TO ACB #
  60. PROC OSCHAPP ; # APPLICATION SCHEDULER #
  61. PROC MGETS ; # GET BUFFER FOR SM #
  62. PROC XTRACE ; # FOR DEBUG USAGE #
  63. LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  64. END
  65.  
  66. ITEM ACNCON U ; # CONNECTION NUMBER #
  67. ITEM SMBUFF U ; # ADDRESS OF NEW SM BUFFER #
  68.  
  69.  
  70. BEGIN # HSFCINA #
  71.  
  72. P<ACB> = PARAMS1; # ADDRESS OF PCB #
  73. IF (ACBORD1[0]) # THIS APPLICATION ALREADY SENT #
  74. # SAC/NCL TO SET ERROR CONDITION#
  75. THEN # FOR FC/INACT/SM #
  76. BEGIN
  77. ACBABTFC[0] = TRUE ; # READY TO ABORT THIS APPL #
  78. # AND DONT QUEUE ANY SM #
  79. GOTO RJMAIN ;
  80. END
  81.  
  82.  
  83. MGETS(LFCINCT+BLKHSIZE+ABHSIZE,SMBUFF,TRUE) ; # GET BUFFER #
  84.  
  85. P<DRHDRWD> = SMBUFF ;
  86. P<AHEADER> = P<DRHDRWD> + BLKHSIZE ;
  87. ABHABT[0] = APPCMD ;
  88. ABHACT[0] = CT60TRANS ;
  89. ABHTLC[0] = 1 ;
  90. P<SUPMSG> = P<DRHDRWD> + BLKHSIZE + ABHSIZE ;
  91. PFCSFC[0] = FCINA ;
  92. FCACN[0] = PARAMS2; # APPLICATION CONNECTION NUMBER #
  93. P<ACNT> = ACBACNT[0]; # ADDRESS OF CONNECTION TABLE #
  94. P<ACNB> = ACNTACNB[PARAMS2 + ACNTHSIZE - ACNTMINACN[0]];
  95. FCATF[0] = ACNBTIMERF[0]; # SET APP SPECIFIED TIMER FLAG #
  96. BLINK(P<DRHDRWD>,P<ACB>) ;
  97. OSCHAPP(P<ACB>) ;
  98.  
  99. GOTO RJMAIN; # RETURN TO CALLING PROGRAM #
  100.  
  101. END
  102. TERM
cdc/nos2.source/nam5871/hsfcina.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator