User Tools

Site Tools


cdc:nos2.source:nam5871:ipispsm

IPISPSM

Table Of Contents

  • [00003] PROC IPISPSM
  • [00005] IPISPSM - PROCESS SUPERVISORY MESSAGE.
  • [00036] PROC IPIAIPA
  • [00037] PROC IPISPCA
  • [00038] PROC IPISPCB
  • [00039] PROC IPISPCE
  • [00040] PROC IPISPCR
  • [00041] PROC IPISPEL
  • [00042] PROC IPISPFA
  • [00043] PROC IPISPFI
  • [00044] PROC IPISPHO
  • [00045] PROC IPISPSI
  • [00046] PROC MESSAGE
  • [00047] PROC XWOD
  • [00066] PROC SMERROR

Source Code

IPISPSM.txt
  1. *DECK IPISPSM
  2. USETEXT TEXTIPL
  3. PROC IPISPSM;
  4. *CALL COPYRITE CDCNET - COPYRIGHT CONTROL DATA. 1992.
  5. # TITLE IPISPSM - PROCESS SUPERVISORY MESSAGE. #
  6.  
  7. BEGIN # IPISPSM #
  8. #
  9. **** IPISPSM PROCESS SUPERVISORY MESSAGE.
  10. *
  11. * THIS PROCEDURE PROCESSES ALL SUPERVISORY MESSAGES RECEIVED BY
  12. * THE NAM INPUT TRAFFIC HANDLER. THE MESSAGE IS VALIDATED AND
  13. * THEN THE PROPER PROSESSING PROCEDURE IS INVOKED.
  14. *
  15. * PROC IPISPSM
  16. *
  17. * ENTRY INPBUF = ARRAY CONTAINING SUPERVISORY MESSAGE.
  18. * P<ABH> = PTR TO INPUT APPLICATION BLOCK HEADER.
  19. *
  20. * EXIT SUPERVISORY MESSAGE PROCESSED.
  21. * P<ABH> AND P<APSM> MAY POINT TO OUTGOING INFORMATION.
  22. *
  23. * METHOD THE PRIMARY AND SECONDARY FUNCTION CODES ARE EXAMINED
  24. * TO DETERMINE WHICH SUPERVISORY MESSAGE WAS RECEIVED.
  25. * BASED ON THE MESSAGE, THE REQUIRED ACTION IS TAKEN.
  26. * SOME SUPERVISORY MESSAGES ARE IGNORED AS THEY HAVE NO
  27. * EFFECT ON THE APPLICATIONS OPERATION.
  28. *
  29. #
  30.  
  31. #
  32. **** PROC IPISPSM - XREF LIST
  33. #
  34. XREF
  35. BEGIN
  36. PROC IPIAIPA; # ABORT THE IP APPLICATION #
  37. PROC IPISPCA; # PROCESS APPLICATION CONNECTION REJECT #
  38. PROC IPISPCB; # PROCESS CONNECTION BROKEN #
  39. PROC IPISPCE; # PROCESS CONNECTION END #
  40. PROC IPISPCR; # PROCESS CONNECTION REQUEST #
  41. PROC IPISPEL; # PROCESS ERROR LOGICAL #
  42. PROC IPISPFA; # PROCESS BLOCK ACKNOWLEGMENT #
  43. PROC IPISPFI; # PROCESS CONNECTION INITIALIZED #
  44. PROC IPISPHO; # PROCESS HOST OPERATOR REQUEST #
  45. PROC IPISPSI; # PROCESS SHUTDOWN REQUEST #
  46. PROC MESSAGE; # DISPLAY AND DAYFILE A MESSAGE #
  47. PROC XWOD; # CONVERT WORD TO OCTAL DISPLAY #
  48. END
  49. #
  50. **
  51. #
  52. ITEM SMPFCSFC U; # PRIMARY/SECONDARY FUNCTION #
  53.  
  54. #
  55. **** ARRAYS FOR INVALID SUPERVISORY MESSAGE
  56. #
  57.  
  58. ARRAY INVALIDSM [00:00] S(4);
  59. BEGIN
  60. ITEM INV$TXT1 C(00,00,24) = ["IPP-INVALID SUPERVISORY "];
  61. ITEM INV$TXT2 C(02,24,08) = ["MESSAGE."];
  62. ITEM INV$ZBYTE U(03,12,48) = [0];
  63. END
  64.  
  65. CONTROL EJECT;
  66. PROC SMERROR;
  67. BEGIN # SMERROR #
  68. #
  69. **
  70. #
  71. ITEM I U; # LOOP COUNTER #
  72. ITEM K U; # LOOP COUNTER #
  73. #
  74. **
  75. #
  76. ARRAY SUPMSGTXT [00:00] S(3);
  77. BEGIN
  78. ITEM SUP$TEXT C(00,00,20);
  79. ITEM SUP$ZBYTE U(02,00,60) = [0];
  80. END
  81.  
  82. #
  83. **** START SMERROR
  84. #
  85.  
  86. FOR I = 0 STEP 1 UNTIL (ABHTLC [0] - 1) DO
  87. BEGIN # CONVERT WORD OF SM FOR DAYFILE#
  88. XWOD (INP$WORD [I] ,SUPMSGTXT);
  89. MESSAGE (SUPMSGTXT, 0);
  90. END # CONVERT WORD OF SM FOR DAYFILE#
  91. RETURN;
  92. END # SMERROR #
  93.  
  94. CONTROL EJECT;
  95.  
  96. #
  97. **** START MAIN PROCEDURE
  98. #
  99.  
  100. P<APSM> = LOC(INPBUF); # BASE SUPERVISORY MESSAGE #
  101. SMPFCSFC = PFCSFC[0]; # PRIMARY/SECONDARY FUNCTION #
  102.  
  103. #
  104. **** CON/ACRQ/A SUPERVISORY MESSAGE
  105. #
  106.  
  107. IF SMPFCSFC EQ CONACRA
  108. THEN
  109. BEGIN # PROCESS CON/ACRQ/A #
  110. IPISPCA;
  111. END
  112.  
  113. #
  114. **** CON/CB SUPERVISORY MESSAGE
  115. #
  116.  
  117. ELSE IF SMPFCSFC EQ CONCB
  118. THEN
  119. BEGIN # PROCESS CONNECTION BROKEN #
  120. IPISPCB;
  121. END
  122.  
  123. #
  124. **** CON/END/N SUPERVISORY MESSAGE
  125. #
  126.  
  127. ELSE IF SMPFCSFC EQ CONENDN
  128. THEN
  129. BEGIN # PROCESS CONNECTION ENDED #
  130. IPISPCE;
  131. END
  132.  
  133. #
  134. **** CON/REQ/R SUPERVISORY MESSAGE
  135. #
  136.  
  137. ELSE IF SMPFCSFC EQ CONREQ
  138. THEN
  139. BEGIN # PROCESS CONNECTION REQUEST #
  140. IPISPCR;
  141. END
  142.  
  143. #
  144. **** FC/ACK SUPERVISORY MESSAGE
  145. #
  146.  
  147. ELSE IF SMPFCSFC EQ FCACK
  148. THEN
  149. BEGIN # PROCESS BLOCK DELIVERED #
  150. IPISPFA;
  151. END
  152.  
  153. #
  154. **** FC/INA SUPERVISORY MESSAGE
  155. #
  156.  
  157. ELSE IF SMPFCSFC EQ FCINA
  158. THEN
  159. BEGIN # IGNORE CONNECTION INACTIVE #
  160. END
  161.  
  162. #
  163. **** FC/INIT SUPERVISORY MESSAGE
  164. #
  165.  
  166. ELSE IF SMPFCSFC EQ FCINIT
  167. THEN
  168. BEGIN # PROCESS CONNECTION INITIALIZED#
  169. IPISPFI;
  170. END
  171.  
  172. #
  173. **** FC/NAK SUPERVISORY MESSAGE
  174. #
  175.  
  176. ELSE IF SMPFCSFC EQ FCNAK
  177. THEN
  178. BEGIN # PROCESS BLOCK NOT DELIVERED #
  179. IPIAIPA (NAKERR$); # NAM PROTOCOL ERROR #
  180. RETURN;
  181. END
  182.  
  183. #
  184. **** ERR/LGL SUPERVISORY MESSAGE
  185. #
  186.  
  187. ELSE IF SMPFCSFC EQ ERRLGL
  188. THEN
  189. BEGIN # PROCESS ERROR LOGICAL #
  190. SMERROR; # ISSUE ERROR TO DAYFILE #
  191. IPIAIPA (ERRLGL$); # NAM PROTOCOL ERROR #
  192. RETURN;
  193. END
  194.  
  195. #
  196. **** SHUT/INSD SUPERVISORY MESSAGE
  197. #
  198.  
  199. ELSE IF SMPFCSFC EQ SHUINS
  200. THEN
  201. BEGIN # PROCESS SHUTDOWN REQUEST #
  202. IPISPSI;
  203. END
  204.  
  205. #
  206. **** HOP SUPERVISORY MESSAGE
  207. #
  208.  
  209. ELSE IF PFC [0] EQ HOP
  210. THEN
  211. BEGIN # PROCESS HOST OPERATOR REQUEST #
  212. IPISPHO;
  213. END
  214.  
  215. #
  216. **** ALL OTHER SUPERVISORY MESSAGES
  217. #
  218.  
  219. ELSE
  220. BEGIN # PROCESS OTHER TYPES #
  221. MESSAGE (INVALIDSM, 0); # DAYFILE INVALID SM MESSAGE #
  222. SMERROR; # ISSUE ERROR TO DAYFILE #
  223. END
  224.  
  225. RETURN; # RETURN TO CALLER #
  226.  
  227. END # IPISPSM #
  228.  
  229. TERM
cdc/nos2.source/nam5871/ipispsm.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator