User Tools

Site Tools


cdc:nos2.source:nam5871:relconn

RELCONN

Table Of Contents

  • [00008] PROC RELCONN(LLCBA,TRIGER)
  • [00055] PROC NCSTTP
  • [00056] PROC XTRACE

Source Code

RELCONN.txt
  1. *DECK RELCONN
  2. USETEXT LLCB
  3. USETEXT NCNB
  4. USETEXT NCNT
  5. USETEXT NIPDEF
  6. USETEXT PARAMS
  7. USETEXT SUPMSG
  8. PROC RELCONN(LLCBA,TRIGER);
  9. # RELEASE ALL CONNECTIONS ON A LOGICAL LINK #
  10.  
  11. STARTIMS;
  12. #
  13. *1DC RELCONN
  14. *
  15. * 1. PROC NAME AUTHOR DATE
  16. * RELCONN E.T. WAN 81/05/26
  17. *
  18. * 2. FUNCTIONAL DESCRIPTION
  19. * THIS ROUTINE TERMINATES ALL CONNECTIONS ON A LOGICAL LINK.
  20. *
  21. * 3. METHOD USED
  22. * FOR EACH ACTIVE CONNECTION ON THE LOGICAL LINK, CALL NETWORK
  23. * CONNECTION STATE TABLE PROCESSOR TO TERMINATE THE CONNECTION.
  24. *
  25. * 4. ENTRY PARAMETERS
  26. * LLCBA ADDRESS OF LLCB
  27. * TRIGER TRIGER TO STATE TABLE PROCESSOR
  28. *
  29. * 5. EXIT PARAMETERS
  30. * NONE
  31. *
  32. * 6. COMDECKS CALLED
  33. * LLCB
  34. * NCNT
  35. * NIPDEF
  36. *
  37. * 7. ROUTINES AND OVERLAYS CALLED
  38. * NCSTTP NETWORK CONNECTION STATE TABLE PROCESSOR
  39. * XTRACE TRACE CALLS
  40. *
  41. * 8. DAYFILE MESSAGES
  42. * NONE
  43. *
  44. *
  45.  #
  46. STOPIMS;
  47.  
  48. #
  49. **** EXTERNAL ENTRY POINTS
  50. #
  51.  
  52. XREF
  53. BEGIN
  54. LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  55. PROC NCSTTP; # NETWORK CONNECTION STATE TABLE PROCESSOR#
  56. PROC XTRACE; # TRACE CALLS #
  57. END
  58.  
  59. #
  60. * LOCAL VARIABLES
  61. #
  62.  
  63. ITEM CONN; # CONNECTION NUMBER #
  64. ITEM FIRSTCN; # FIRST CONNECTION NUMBER IN A NCNT #
  65. ITEM I; # LOOP CONTROL VARIABLE #
  66. ITEM J; # LOOP CONTROL VARIABLE #
  67. ITEM NNCNTE; # NUMBER OF ENTRIES IN NCNT #
  68. ITEM LLCBA ; # LLCB ADDRESS #
  69. ITEM TRIGER ; # TRIGER TO STATE TABLE PROCESSOR #
  70.  
  71. #**********************************************************************#
  72.  
  73.  
  74.  
  75.  
  76.  
  77. BEGIN #RELCONN#
  78. CONTROL IFEQ DEBUG,1;
  79. XTRACE("RCONN") ;
  80. CONTROL FI;
  81.  
  82. P<LLCB> = LLCBA ; # LLCB #
  83. NNCNTE = NCNTSIZE - NCNTHSIZE; # NUMBER OF ENTRIES IN NCNT #
  84. FOR I = LLCBHSIZE STEP 1 UNTIL LLCBSIZE - LLCBHSIZE - 1
  85. DO # CHECK EACH NCNT ADDRESS IN LLCB #
  86. BEGIN
  87. P<NCNT> = LLCBNCNT[I]; # NCNT ADDRESS #
  88. IF P<NCNT> NQ 0 # NCNT EXISTS #
  89. THEN
  90. BEGIN
  91. FIRSTCN = NCNTCI[0] * NNCNTE; # FIRST CONN NUMBER IN NCNT #
  92. FOR J = NCNTHSIZE STEP 1 WHILE J LQ NNCNTE AND
  93. LLCBNCNT[I] NQ 0
  94. DO # CHECK EACH NCNB ADDRESS IN NCNT #
  95. BEGIN
  96. IF NCNTNCNB[J] NQ 0 # NCNB EXISTS #
  97. THEN
  98. BEGIN
  99.  
  100. # IF THIS IS A PRU CONNECTION, SET THE NCNTREL BIT SO #
  101. # THE CONNECTION WILL BE RELEASED WHEN PIP SENDS NIP A #
  102. # RESPONSE WORKLIST (OP=3). #
  103.  
  104. P<NCNB> = NCNTNCNB[J];
  105. IF (NCNBID[0] EQ PCNBIDVALUE) OR
  106. (NCNBID[0] EQ LCNBIDVALUE)
  107. THEN
  108. BEGIN
  109. NCNTREL[J] = TRUE; # SET THE TO-BE-RELEASED FLAG #
  110. END
  111.  
  112. CONN = FIRSTCN + J - NCNTHSIZE ; # CONNECTION NUMBER #
  113.  
  114. #
  115. * CALL NETWORK CONNECTION STATE TABLE PROCESSOR TO TERMINATE
  116. * CONNECTION. TRIGGER IS 'LOGICAL LINK FAIL'.
  117. #
  118.  
  119. NCSTTP(P<LLCB>,CONN,TRIGER,0);
  120. END
  121.  
  122. END
  123.  
  124. END
  125.  
  126. END
  127.  
  128.  
  129. END # RELCONN #
  130.  
  131. TERM
cdc/nos2.source/nam5871/relconn.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator