User Tools

Site Tools


cdc:nos2.source:nam5871:csibot

CSIBOT

Table Of Contents

  • [00004] PROC CSIBOT
  • [00005] CSIBOT - BUILD OPERATOR TABLES.
  • [00008] BUILD OPERATOR TABLES.
  • [00032] PROC SSTATS

Source Code

CSIBOT.txt
  1. *DECK CSIBOT
  2. USETEXT TEXTCS
  3. USETEXT TXCMDCS
  4. PROC CSIBOT;
  5. # TITLE CSIBOT - BUILD OPERATOR TABLES. #
  6. BEGIN # CSIBOT #
  7. #
  8. ** CSIBOT - BUILD OPERATOR TABLES.
  9. *
  10. * C. BRION 82/04/21.
  11. *
  12. * THIS PROC ALLOCATES AND INITIALIZES THE OPERATOR CONTROL BLOCKS
  13. * AND THE ACN LIST FOR THE CS PROGRAM.
  14. *
  15. * DESCRIPTION
  16. *
  17. * PROC CSIBOT
  18. *
  19. * ENTRY NONE
  20. *
  21. * EXIT THE MANAGED TABLES FOR THE OCBS AND THE ACN LIST WILL
  22. * BE ALLOCATED AND INITIALIZED.
  23. *
  24. #
  25.  
  26. #
  27. **** PROC CSIBOT XREF LIST
  28. #
  29.  
  30. XREF
  31. BEGIN
  32. PROC SSTATS; # ALLOCATE TABLE SPACE #
  33. END
  34. #
  35. ****
  36. #
  37.  
  38. #
  39. * PROC CSIBOT ITEM LIST
  40. #
  41.  
  42. ITEM SIZE1 I; # SIZE VARIABLES #
  43.  
  44. $BEGIN
  45. $END
  46. ITEM I; # LOOP VARIABLE #
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. # MAIN PROC START #
  54.  
  55. #
  56. * CALCULATE THE SIZE OF THE MANAGED TABLE NEEDED FOR THE OCBS
  57. * AND THEN GET THE TABLE SPACE. THE TABLE WILL THEN BE ZEROED.
  58. #
  59.  
  60. SIZE1 = (MAXACN$ * OCBSIZ$);
  61. SSTATS(P<OCB>,SIZE1);
  62.  
  63. FOR I=1 STEP 1 UNTIL MAXACN$
  64. DO
  65. BEGIN
  66. OC$WORD[I] = 0;
  67. OC$WORD1[I] = 0;
  68. OC$WORD2[I] = 0;
  69.  
  70. #
  71. * INITIALIZE THE APPLICATION CONNECTION NUMBER, OCB ORDINAL WHICH
  72. * IS EQUAL TO THE ACN, OPERATOR TYPE AND THE STATE OF EACH OCB
  73. * THE STATE IS INITIALLY SET TO INACTIVE.
  74. #
  75.  
  76. OC$ACN[I] = I;
  77. OC$ORD[I] = I;
  78. OC$TYPE[I] = OPTYP"NOP";
  79. OC$STATE[I] = FALSE;
  80. OC$TNAM[I] = " ";
  81. OC$UNAM[I] = " ";
  82. END
  83. #
  84. * THE HOP OCB ENTRY NEEDS SPECIAL INITIALIZATION SINCE THE
  85. * NETWORK DOES NOT CAUSE THE CONNECTION TO BE BUILT IN THE SAME
  86. * MANNER AS A TERMINAL OPERATOR. THE TYPE AND TERMINAL NAME MUST
  87. * BE SET.
  88. #
  89.  
  90. OC$TYPE[HOPORD$] = OPTYP"HOP";
  91. OC$TNAM[HOPORD$] = "HOSTCS ";
  92. OC$PL[HOPORD$] = HOPIPL$; # SET PAGE LEN FOR HOP #
  93.  
  94. #
  95. * THE ACN LIST SIZE IS CALCULATED AND THE MANAGED TABLE OF THAT
  96. * SIZE IS THEN OBTAINED. THE ENTIRE LIST IS THEN SET TO ZERO.
  97. #
  98.  
  99. SIZE1 = (MAXACN$ * ACNESIZ$);
  100. SSTATS(P<ACN>,SIZE1);
  101.  
  102. FOR I=1 STEP 1 UNTIL MAXACN$
  103. DO
  104. BEGIN
  105. ACN$WORD0[I] = 0;
  106. ACN$WORD1[I] = 0;
  107.  
  108. #
  109. * NOW EACH ENTRY OF THE ACN LIST IS INITIALIZED. THE ONLY FIELD
  110. * THAT NEEDS TO BE SET IS THE ACN VALUE SINCE EACH ENTRY HAS BEEN
  111. * SET TO ZERO.
  112. #
  113.  
  114. ACN$ACN[I] = I;
  115. END
  116.  
  117. #
  118. * SET THE INITIAL STATE OF THE CONTROL NOP TO ZERO.
  119. #
  120.  
  121. CSACNOP = 0 ;
  122.  
  123. #
  124. * SET CS APPLICATION NAME FOR DAYFILED COMMANDS.
  125. #
  126.  
  127. CMD$CSID[0] = "CS/";
  128.  
  129.  
  130.  
  131. END #CSIBOT#
  132.  
  133. TERM
cdc/nos2.source/nam5871/csibot.txt ยท Last modified: 2023/08/05 17:21 by Site Administrator