User Tools

Site Tools


cdc:nos2.source:nam5871:nvftspc

NVFTSPC

Table Of Contents

  • [00008] PROC NVFTSPC
  • [00009] NVFTSPC - T-A SWITCH PENDING CONNECTIONS
  • [00012] TA SWITCH PENDING CONNECTIONS.
  • [00040] PROC NVFTDAD
  • [00041] PROC NVFTILP
  • [00042] PROC NVFTDSP
  • [00043] PROC NVFSCAD

Source Code

NVFTSPC.txt
  1. *DECK NVFTSPC
  2. USETEXT TEXTSS
  3. USETEXT TEXTNVF
  4. USETEXT TXTANVF
  5. USETEXT TXSMNVF
  6. USETEXT TXTAPSS
  7. USETEXT TXTSUSS
  8. PROC NVFTSPC;
  9. # TITLE - NVFTSPC - T-A SWITCH PENDING CONNECTIONS #
  10. BEGIN # NVFTSPC #
  11. #
  12. ** NVFTSPC - TA SWITCH PENDING CONNECTIONS.
  13. *
  14. * C. BRION 83/04/18.
  15. *
  16. * THIS PROCEDURE CHECKS FOR PENDING TA CONNECTIONS AND EITHER RE-
  17. * STARTS THE LOGIN DIALOGUE OR CAUSES THE CONNECTIONS TO BE TER-
  18. * MINATED OR CAUSES THE CONNECTIONS TO BE SWITCHED TO THE REQUEST
  19. * STARTED APPLICATION.
  20. *
  21. * PROC NVFTSPC
  22. *
  23. * ENTRY:
  24. * THE NETON NORMAL OR ABNORMAL RESPONSE RESIDES IN MSGBUF,
  25. * ABHBUF AND WCBUF.
  26. *
  27. * EXIT:
  28. * PENDING PTAC ENTRIES MAY BE CAUSED TO BE TERMINATED.
  29. * PENDING PTAC ENTRIES MAY BE CAUSED TO BE SWITCHED.
  30. * PENDING PTAC ENTRIES MAY BE CAUSED TO RESTART THE DIALOGUE
  31. * SEQUENCE.
  32. *
  33. #
  34.  
  35. #
  36. **** PROC NVFTSPC XREF LIST
  37. #
  38. XREF
  39. BEGIN
  40. PROC NVFTDAD; # DETERMINE DIALOGUE #
  41. PROC NVFTILP; # ISSUE LOGIN PROMPT #
  42. PROC NVFTDSP; # DETERMINE SWITCH #
  43. PROC NVFSCAD; # COMPLETE AP DEPARTURE #
  44. END
  45. #
  46. ****
  47. #
  48. ITEM SECAST B; # SECONDARY AST EXISTS #
  49. ITEM PTENTRY I; # NUMBER PTAC ENTRIES #
  50. ITEM ASENTRY I; # NUMBER AST ENTRIES #
  51. ITEM MATCH B; # LOOP EXIT FLAG #
  52. ITEM AORD I; # AST ORDINAL OF NETON APPL #
  53. ITEM PT I; # PTAC ENTRY ORDINAL #
  54. ITEM PORD I; # PRIMARY AST ENTRY ORDINAL #
  55. ITEM ERRCODE I; # NVFTDAD ERROR CODE #
  56. ITEM PD I; # PDCT ENTRY ORDINAL #
  57.  
  58. CONTROL EJECT;
  59.  
  60. #
  61. * INITIALIZE FLAGS AND NUMBER ENTRIES IN PTAC AND AST TABLES.
  62. #
  63.  
  64. SECAST = FALSE;
  65. PTENTRY = PTALNGTH/PTACSIZ$;
  66. ASENTRY = ASTLNGTH/ASTSIZ$;
  67. MATCH = FALSE;
  68.  
  69. #
  70. * SEARCH FOR AST ENTRY THAT MATCHES APPLICATION NUMBER OF THE
  71. * NET ON RESPONSE.
  72. #
  73. FOR AORD = 0 STEP 1 WHILE
  74. (AORD LS ASENTRY AND
  75. NOT MATCH)
  76. DO
  77. BEGIN
  78. IF AST$AN[AORD] EQ NETAN[0]
  79. THEN
  80. BEGIN
  81. MATCH = TRUE;
  82. #
  83. * CHECK IF AST ENTRY IS SECONDARY. IF SO, SEARCH FOR THE PRIMARY
  84. * AST ENTRY.
  85. #
  86. IF AST$PANAM[AORD] NQ AST$SANAM[AORD]
  87. THEN
  88. BEGIN
  89. #
  90. * SECONDARY AST ENTRY. LOCATE PRIMARY.
  91. #
  92. FOR PORD = 0 STEP 1 WHILE
  93. (PORD LS ASENTRY AND
  94. AST$PANAM[PORD] NQ AST$SANAM[AORD])
  95. DO
  96. BEGIN
  97. END
  98. END
  99. ELSE
  100. PORD = AORD;
  101.  
  102. #
  103. * AST ENTRY FOUND. LOCATE EACH PTAC ENTRY THAT IS PENDING NETON FOR
  104. * THIS AST ENTRY AND IS EITHER A CONSOLE DEVICE TYPE OR A PSU
  105. * PRINTER WHICH IS CONNECTED TO CDCNET.
  106. #
  107. FOR PT = 0 STEP 1 WHILE PT LS PTENTRY
  108. DO
  109. BEGIN
  110. IF ( (PTA$SWTAPP[PT] EQ AST$PANAM[PORD] ) AND
  111. ( (PTA$DT[PT] EQ DTSTAT"SCON") OR
  112. (PTA$DT[PT] EQ DTSTAT"SCLP") ) AND
  113. (PTA$STATE[PT] EQ PTACST"AWTNETP" ) )
  114. THEN
  115. BEGIN
  116. #
  117. * FOR EACH PTAC, CLEAR TIMER CANCELLATION NUMBER.
  118. #
  119. PTA$CNUM[PT] = 0;
  120.  
  121. #
  122. * CHECK IF NET ON RESPONSE IS ABNORMAL OR NORMAL.
  123. #
  124. IF PFCSFC[0] EQ NETONA
  125. THEN
  126. BEGIN
  127. #
  128. * NET ON ABNORMAL RESPONSE. SET UP ERROR CODE FOR NVFTDAD IN ORDER
  129. * TO DETERMINE THE DIALOGUE NEEDED FOR THE CONNECTION AFTER AN
  130. * APPLICATION NOT PRESENT SITUATION. IF THE CONNECTION IS TO CON-
  131. * TINUE LOGIN SEQUENCE, CALL NVFTILP TO RESTART THE LOGIN SEQUENCE.
  132. #
  133. ERRCODE = ECANP$;
  134. NVFTDAD(PT,ERRCODE);
  135. IF PTA$STATE[PT] EQ PTACST"AWTPRMT"
  136. THEN
  137. NVFTILP(PT);
  138. END
  139. ELSE # NET ON NORMAL RESPONSE #
  140. BEGIN
  141. #
  142. * NET ON NORMAL RESPONSE. CALL NVFTDSP TO DETERMINE SWITCH POS-
  143. * SIBILITY.
  144. #
  145. PD = 0;
  146. NVFTDSP(PT,PD);
  147. END
  148. END
  149. END
  150. #
  151. * IF NET ON ABNORMAL, THEN CALL NVFSCAD TO COMPLETE APPLICATION
  152. * DEPARTURE OF AST ENTRY.
  153. #
  154. IF PFCSFC[0] EQ NETONA
  155. THEN
  156. BEGIN
  157. NVFSCAD(AORD);
  158. IF PORD NQ AORD
  159. THEN
  160. NVFSCAD(PORD);
  161. END
  162. END
  163. END
  164. END # NVFTSPC #
  165. TERM
cdc/nos2.source/nam5871/nvftspc.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator