User Tools

Site Tools


cdc:nos2.source:nam5871:xnbrlc

XNBRLC

Table Of Contents

  • [00008] PRGM XNBRLC
  • [00017] PROC OMSG
  • [00018] PROC OVLCALL
  • [00019] PROC KPUT
  • [00020] PROC XTRACE

Source Code

XNBRLC.txt
  1. *DECK XNBRLC
  2. USETEXT NIPDEF
  3. USETEXT FREETAB
  4. USETEXT KDIS
  5. USETEXT KHDRX
  6. USETEXT PARAMS
  7. USETEXT OVERLAY
  8. PRGM XNBRLC; # PROCESS NAM BEFFER LEVEL CHANGE #
  9.  
  10. STARTIMS;
  11. STOPIMS;
  12. #
  13.   EXTERNAL REFERENCES
  14. #
  15. XREF
  16. BEGIN
  17. PROC OMSG; # DAYFILE MESSAGE #
  18. PROC OVLCALL; # LOAD OVERLAY #
  19. PROC KPUT; # UPDATE STATUS DISPLAY #
  20. PROC XTRACE; # TRACE PROC CALLS #
  21. LABEL RJMAIN;
  22. END
  23. #
  24.   LOCAL VARIABLES
  25. #
  26. ARRAY KM$MAXFL [0:0] S(3);
  27. BEGIN
  28. ITEM KMSG$TEXT C(00,00,28) =
  29. ["NIP MAXIMUM FL REACHED."];
  30. ITEM KMSG$END U(02,48,12) = [0];
  31. END
  32. ARRAY KINREG S(3);
  33. BEGIN
  34. ITEM KINREGM C(0,00,25) = [" NIP IN REGULATION LEVEL "];
  35. ITEM KINREGL U(2,30,06);
  36. ITEM KINREGP C(2,36,01) = ["."];
  37. ITEM KINREGE U(2,42,18) = [0];
  38. END
  39. ARRAY KLPCR S(4);
  40. BEGIN
  41. ITEM KLPCRM C(0,00,37) = [" INCREASE FL - LOW PRI CONNS IN REGL."];
  42. ITEM KLPCRE U(3,42,18) = [0];
  43. END
  44. ARRAY KACR S(4);
  45. BEGIN
  46. ITEM KACRM C(0,00,33) = [" INCREASE FL - ALL CONNS IN REGL."];
  47. ITEM KACRE U(3,42,18) = [0];
  48. END
  49. CONTROL EJECT;
  50.  
  51. BEGIN # XNBRLC #
  52.  
  53. CONTROL IFEQ DEBUG,1;
  54. XTRACE("XNBLC"); # TRACE CALL #
  55. CONTROL FI;
  56.  
  57. IF HRL NQ 0
  58. THEN # NAM BUFFER LEVEL NOT AT -NO TRAFFIC- #
  59. BEGIN # SEND REG/CP(S) TO ALL NPUS TO NOTIFY CHANGE #
  60. PARAMS1 = 0; # INFORM ALL ACTIVE NPUS #
  61. PARAMS2 = 0; # UNSOLICITED REG/CP TO PIP #
  62. OVLNAME = NCREGCPP;
  63. OVLCALL;
  64. KINREGL[0] = HRL + O"33"; # STORE REGL LEVEL IN DAY MSG #
  65. OMSG(KINREG,0); # ISSUE REGULATION DAYFILE MESSAGE #
  66. IF HRL EQ HRLV2
  67. THEN # REGULATION LEVEL 2 - LOW PRI CONS HUNG #
  68. BEGIN
  69. OMSG(KLPCR,0); # ISSUE DAYFILE MESSAGE #
  70. END
  71. ELSE # REGULATION LEVEL 1 - ALL CONS HUNG #
  72. BEGIN
  73. IF HRL EQ HRLV1
  74. THEN # REGULATION LEVEL 1 - ALL CONS HUNG #
  75. BEGIN
  76. OMSG(KACR,0); # ISSUE DAYFILE MESSAGE #
  77. END
  78. END
  79. END
  80.  
  81. ELSE # MAXIMUM FL REACHED, NO TRAFFIC ALLOWED #
  82. BEGIN
  83. IF KDAM[0]
  84. THEN # K DISPLAY IN APPLICATION MODE #
  85. BEGIN # FORCE SWITCH INTO NAM MODE #
  86. OVLNAME = KPCLNUPP;
  87. OVLCALL;
  88. END
  89. OMSG(KM$MAXFL,0); # DAYFILE MAX FL REACHED #
  90. END
  91.  
  92. LASTHRL = HRL; # UPDATE LAST BUFFER REGULATION LEVEL TO CURRENT #
  93. IF KDST[0]
  94. THEN # NAM STATUS DISPLAY IS UP #
  95. KPUT(LOC(KHDRXNM),0,KPHXRGL,HRL); # UPDATE K DISPLAY #
  96.  
  97. GOTO RJMAIN;
  98. END # XNBRLC #
  99. TERM
cdc/nos2.source/nam5871/xnbrlc.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator