User Tools

Site Tools


cdc:nos2.source:nam5871:csesle

CSESLE

Table Of Contents

  • [00006] PROC CSESLE(NID,WC$WORD,MSG$TXT)
  • [00007] SEND LOG (FILE) ENTRY.
  • [00010] SEND LOG (FILE) ENTRY.
  • [00033] PROC MOVEI
  • [00034] PROC SSTAQE

Source Code

CSESLE.txt
  1. *DECK CSESLE
  2. USETEXT TEXTCS
  3. USETEXT TEXTSS
  4. USETEXT TXTAPSS
  5. USETEXT TXTSMCS
  6. PROC CSESLE(NID,WC$WORD,MSG$TXT);
  7. # TITLE - SEND LOG (FILE) ENTRY. #
  8. BEGIN
  9. #
  10. ** CSESLE - SEND LOG (FILE) ENTRY.
  11. *
  12. * D.K. ENDO 82/04/19
  13. *
  14. * THIS PROCEDURE FORMATS AND SENDS A MESSAGE TEXT TO THE NETWORK LOG
  15. * FILE.
  16. *
  17. * PROC CSESLE(NID,WC$WORD,MSG$TXT)
  18. *
  19. * ENTRY 1. NID = NODE I.D. OF NPU THAT SENT MESSAGE.
  20. * 2. WC$WORD = WORD COUNT WORD.
  21. * 3. MSG$TXT = MESSAGE TEXT.
  22. *
  23. * EXIT 1. HOP/LG SM AS ENTRY IN THE OUTBOUND TRAFFIC QUEUE.
  24. *
  25. #
  26.  
  27.  
  28. #
  29. **** PROC CSESLE - XREF LIST BEGINS.
  30. #
  31. XREF
  32. BEGIN
  33. PROC MOVEI; # MOVES A BLOCK OF CM WORDS #
  34. PROC SSTAQE; # ACCEPT QUEUE ENTRY #
  35. END
  36. #
  37. ****
  38. #
  39.  
  40.  
  41. ITEM NID; # NODE I.D. OF NPU THAT SENT SM #
  42. ITEM WC$WORD; # WORD COUNT WORD #
  43. #
  44.   THIS ARRAY DEFINES THE BUFFER OF THE MESSAGE TEXT TO BE ENTERED
  45.   IN THE NETWORK LOG FILE.
  46. #
  47. ARRAY MSG$TXT [00:09] S(1);
  48. BEGIN
  49. ITEM MST$WORD C(00,00,10);
  50. END
  51.  
  52.  
  53. ITEM ABHTEMP; # ABH TEMPORARY #
  54. ITEM I; # LOOP INDUCTION VARIABLE #
  55. ITEM WCBTEMP; # WCB TEMPORARY #
  56.  
  57.  
  58. #
  59.   THIS ARRAY DEFINES THE NPU IDENTIFIER APPENDED TO THE TEXT BEFORE
  60.   SENT TO THE LOG FILE.
  61. #
  62. ARRAY NID$ID [00:00] S(1);
  63. BEGIN
  64. ITEM NID$IDENT C(00,00,03) = ["NP/"];
  65. ITEM NID$NAME C(00,18,07);
  66. ITEM NID$WORD I(00,00,60);
  67. END
  68. CONTROL EJECT;
  69. # #
  70. # CSESLE CODE BEGINS HERE #
  71. # #
  72. #
  73. * BUILD WORD COUNT WORD FOR SM. BUILD ABH WORD FOR SM. ADD PFCSFC
  74. * FOR HOP/LG/S TO BUFFER. ADD THE APPLICATION IDENTIFIER(NP/) TO
  75. * THE BUFFER. STORE THE MESSAGE TEXT TO THE BUFFER. IF THE TIME
  76. * FIELD IN THE MESSAGE IS BLANK, THEN INSERT THE CURRENT TIME.
  77. * SEND THE SM OFF TO THE OUTBOUND TRAFFIC QUEUE.
  78. #
  79. WCBTEMP = WCB$WORD[1];
  80. WCB$WORD[1] = WC$WORD;
  81. WCB$WC[1] = WCB$WC[1] + 2;
  82.  
  83.  
  84. ABHTEMP = ABHWORD[1];
  85. ABHWORD[1] = 0;
  86. ABHABT[1] = APPCMD;
  87. ABHACT[1] = CT60TRANS;
  88. ABHTLC[1] = WCB$WC[1] - 2;
  89.  
  90.  
  91. IF NID NQ 0
  92. THEN
  93. BEGIN
  94. FOR I=0 STEP 1 WHILE NID NQ NPU$NID[I] AND
  95. I LS CSNPCNT
  96. DO
  97. BEGIN
  98. END
  99.  
  100. IF I LS CSNPCNT
  101. THEN
  102. BEGIN
  103. NID$NAME[0] = NPU$NAME[I];
  104. END
  105. ELSE
  106. BEGIN
  107. NID$NAME[0] = "UNKNOWN";
  108. END
  109. SPMSG1[1] = NID$WORD[0];
  110. END
  111.  
  112. ELSE
  113.  
  114. BEGIN
  115. SPMSG1[1] = "CS/ ";
  116. END
  117.  
  118.  
  119. SPMWD[1] = 0;
  120. PFCSFC[1] = HOPLG;
  121. MOVEI(WCB$WC[1]-3,LOC(MST$WORD[0]),LOC(SPMSG2[1]));
  122. IF MST$WORD[0] EQ " "
  123. THEN
  124. BEGIN
  125. SPMSG2[1] = CTM$CLOCK[0];
  126. END
  127.  
  128.  
  129. SSTAQE(P<OTQ>,WCBUF[1],ABH[1],CSSM[1]);
  130.  
  131.  
  132. WCB$WORD[1] = WCBTEMP;
  133. ABHWORD[1] = ABHTEMP;
  134.  
  135. RETURN; # **** RETURN **** #
  136. END # CSESLE #
  137. TERM
cdc/nos2.source/nam5871/csesle.txt ยท Last modified: 2023/08/05 17:21 by Site Administrator