User Tools

Site Tools


cdc:nos2.source:nam5871:nphopms

NPHOPMS

Table Of Contents

  • [00007] PRGM NPHOPMS
  • [00017] PROC KHOPMSG
  • [00018] PROC OMSG
  • [00019] PROC XTRACE

Source Code

NPHOPMS.txt
  1. *DECK NPHOPMS
  2. USETEXT NIPDEF
  3. USETEXT NHEADER
  4. USETEXT PARAMP
  5. USETEXT SUPMSG
  6.  
  7. PRGM NPHOPMS; # PROCESS HOPN/SEND FROM ANOTHER HOST #
  8.  
  9. STARTIMS;
  10. STOPIMS;
  11.  
  12. #
  13.   EXTERNAL REFERENCES
  14. #
  15. XREF
  16. BEGIN
  17. PROC KHOPMSG; # ISSUE HOP ALERT MESSAGE #
  18. PROC OMSG; # DAYFILE MESSAGE #
  19. PROC XTRACE; # TRACE CALL #
  20. LABEL RJMAIN;
  21. END
  22. #
  23.   LOCAL VARIABLES
  24. #
  25. ARRAY HOPMSGTEXT [0:0] S(6);
  26. BEGIN # HOP MESSAGE LINE FORMAT #
  27. ITEM TXT$HOPMSG C(00,00,50); # WHOLE MESSAGE #
  28. ITEM TXT$HDR1 C(00,00,05) = ["FROM "];
  29. ITEM TXT$SNC1 C(00,30,01); # SOURCE NODE IN DECIMAL DISPLAY #
  30. ITEM TXT$SNC2 C(00,36,01);
  31. ITEM TXT$SNC3 C(00,42,01);
  32. ITEM TXT$HDR2 C(00,48,02) = [".."];
  33. ITEM TXT$TXT1 U(01,00,60); # TEXT WORDS #
  34. ITEM TXT$TXT2 U(02,00,60);
  35. ITEM TXT$TXT3 U(03,00,60);
  36. ITEM TXT$TXT4 U(04,00,60);
  37. ITEM TXT$TEND U(05,00,60) = [0];
  38. END
  39.  
  40. ITEM SOURCEN; # SOURCE NODE NUMBER #
  41. ITEM TEMP1; # TEMPORARY #
  42. ITEM TEMP2; # TEMPORARY #
  43. ITEM TEMP3; # TEMPORARY #
  44. ITEM TIMEOFDAY; # TIME OF DAY IN DISPLAY CODE #
  45.  
  46. CONTROL EJECT;
  47.  
  48. BEGIN # NPHOPMS #
  49.  
  50. CONTROL IFEQ DEBUG,1;
  51. XTRACE("NHOPM"); # TRACE CALL #
  52. CONTROL FI;
  53.  
  54. P<NHEADER> = PARAMP1+BLKHSIZE; # NETWORK HEADER FWA #
  55. P<SMNIP> = P<NHEADER>+ABHSIZE;
  56.  
  57. SOURCEN = SN[0]; # SOURCE NODE NUMBER #
  58. TEMP1 = SOURCEN/100;
  59. TXT$SNC1[0] = TEMP1 + O"33";
  60. TEMP2 = (SOURCEN-TEMP1*100)/10;
  61. TXT$SNC2[0] = TEMP2 + O"33";
  62. TEMP3 = (SOURCEN-TEMP1*100-TEMP2*10);
  63. TXT$SNC3[0] = TEMP3 + O"33";
  64. TXT$TXT1[0] = HOPMSG1[0];
  65. TXT$TXT2[0] = HOPMSG2[0];
  66. TXT$TXT3[0] = HOPMSG3[0];
  67. TXT$TXT4[0] = HOPMSG4[0];
  68. OMSG(HOPMSGTEXT,0); # DAYFILE HOP MESSAGE TEXT #
  69. KHOPMSG(LOC(HOPMSGTEXT)); # ISSUE HOP ALERT MESSAGE #
  70.  
  71. GOTO RJMAIN;
  72. END # NPHOPMS #
  73. TERM
cdc/nos2.source/nam5871/nphopms.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator