User Tools

Site Tools


cdc:nos2.source:nam5871:np_itmg

NP$ITMG

Table Of Contents

  • [00008] PROC NP$ITMG
  • [00039] PROC NP$SMSG
  • [00040] PROC NP$STPR

Source Code

NP$ITMG.txt
  1. *DECK NP$ITMG
  2. *IF DEF,XFR
  3. USETEXT AIPDEF
  4. USETEXT HEADER
  5. USETEXT NX$ACBF
  6. USETEXT NP$NWL
  7. USETEXT NX$ACBX
  8. PROC NP$ITMG;
  9. #
  10. *1DC NP$ITMG
  11. * PROC NAME AUTHOR DATE
  12. * NP$ITMG L.T.NGUYEN 83/03/21
  13. * (* USE FOR FILE TRANSFER APPLICATION ONLY *)
  14. *
  15. * FUNCTIONAL DESCRIPTION:
  16. * INTERCEPT ASYN SUPERVISORY MESSAGE FOR FILE TRANSFER
  17. * CONNECTION.
  18. *
  19. * INPUT PARAMS:
  20. * LOC$HA - APPLICATION HEADER ADDRESS.
  21. * LOC$TA - ADDRESS OF TEXT.
  22. * MSGFORAP - MSG FOR APPLICATION FLAG.
  23. *
  24. * EXIT PARAMS:
  25. * MSGFORAP - TRUE IF THIS MSG IS FOR APPLICATION.
  26. * FALSE IF MSG WAS FOR FILE TRANSFER CONN. AND
  27. * ALREADY GOT PROCESSED.
  28. *
  29. * TEXTS USED:
  30. * HEADER, NX$ACBF.
  31. *
  32. *
  33. *
  34. *
  35.  #
  36. BEGIN
  37. XREF
  38. BEGIN
  39. PROC NP$SMSG ;
  40. PROC NP$STPR ;
  41. END
  42. ITEM ACN ;
  43. ITEM I I ; # INDEX CONTROL #
  44. ITEM FOUND B ; # FOUND FTT ENTRY WITH MATCHING ACN #
  45. ITEM TRIGGER U ;
  46.  
  47. BEGIN # NP$ITMG #
  48.  
  49. FOUND = FALSE ; # CLEAR FLAG #
  50. P<SUPMSG> = LOC$TA ; # TEXT MESSAGE ITSELF #
  51. ACN = SPACN[0] ;
  52.  
  53. IF PFCSFC[0] EQ ERRLGL
  54. THEN
  55. BEGIN # ERROR/LOGICAL RECEIVED #
  56. P<HEADER> = LOC$TA + 1 ; # ABHERR OF MS #
  57. IF ABHADR[0] EQ 0
  58. THEN
  59. BEGIN # ERROR LOGICAL ON ASYN SM #
  60. P<SUPMSG> = LOC$TA + 2 ;
  61. ACN = SPACN[0] ;
  62. END
  63. ELSE
  64. ACN = ABHADR[0] ;
  65. END
  66.  
  67. FOR I = 0 STEP 1 WHILE I LS MAXFILEXFR
  68. AND NOT FOUND
  69. DO
  70. IF FTTACN[I] EQ ACN
  71. AND FTTACN[I] NQ 0
  72. THEN
  73. BEGIN
  74. FTTINDEX = I ; # REMEMBER THIS ENTRY #
  75. FOUND = TRUE ; # FOUND THE ENTRY IN FTT #
  76. END
  77.  
  78. IF NOT FOUND
  79. THEN # MSG IS NOT FOR FILE XFR CONN. #
  80. BEGIN
  81. MSGFORAP = TRUE ; # IT IS FOR THE APPLICATION #
  82. IF PFCSFC[0] EQ SHUINS
  83. THEN
  84. BEGIN # SHUT DOWN WARNING RECEIVED #
  85. IF NOT SPSHUT[0]
  86. THEN # NO A FORCED SHUT DOWN #
  87. TRIGGER = NRSTHSD ; # SET FLAG #
  88. ELSE
  89. TRIGGER = NRSTNSL ;
  90. FOR I = 0 STEP 1 WHILE I LS MAXFILEXFR
  91. DO
  92. BEGIN # CALL STATE TBL FOR SHUTDOWN ACTION#
  93. IF FTTACN[I] NQ 0
  94. THEN
  95. BEGIN # ACTIVE ENTRY #
  96. FTTINDEX = I ;
  97. NP$STPR(FTTINDEX,TRIGGER,0) ;
  98. END
  99. END
  100. END
  101. END
  102.  
  103. ELSE
  104. NP$SMSG ; # MSG IS FOR FILE XFR CONN. #
  105. # CALL TO PROCESS IT APPROPRIATELY #
  106. END
  107. RETURN;
  108. END
  109. TERM
  110. *ENDIF
cdc/nos2.source/nam5871/np_itmg.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator