User Tools

Site Tools


cdc:nos2.source:nam5871:ipispsi

IPISPSI

Table Of Contents

  • [00003] PROC IPISPSI
  • [00005] IPISPSI - PROCESS SHUT/INSD SUPERVISORY MESSAGE.
  • [00030] PROC IPINITH
  • [00031] PROC IPPABOS
  • [00032] PROC IPPENDN
  • [00033] PROC MESSAGE

Source Code

IPISPSI.txt
  1. *DECK IPISPSI
  2. USETEXT TEXTIPL
  3. PROC IPISPSI;
  4. *CALL COPYRITE CDCNET - COPYRIGHT CONTROL DATA. 1992.
  5. # TITLE IPISPSI - PROCESS SHUT/INSD SUPERVISORY MESSAGE. #
  6.  
  7. BEGIN # IPISPSI #
  8. #
  9. **** IPISPSI PROCESS SHUT/INSD SUPERVISORY MESSAGE.
  10. *
  11. * THIS PROCEDURE PROCESSES A SHUT/INSD SUPERVISORY MESSAGE.
  12. *
  13. * PROC IPISPSI
  14. *
  15. * ENTRY P<APSM> = PTR TO SUPERVISORY MESSAGE (*INPBUF*).
  16. *
  17. * EXIT
  18. *
  19. * METHOD IF THE SHUTDOWN REQUEST IS IMMEDIATE, CALL NETOFF.
  20. * IF THE SHUTDOWN REQUEST IS IDLE, ABORT THE OPEN
  21. * CONNECTIONS AND THEN CALL NETOFF.
  22. * STOP THE APPLICATION.
  23. #
  24.  
  25. #
  26. **** PROC IPISPSI - XREF LIST
  27. #
  28. XREF
  29. BEGIN
  30. PROC IPINITH; # NAM INPUT TRAFFIC HANDLER #
  31. PROC IPPABOS; # ABORT SOCKET #
  32. PROC IPPENDN; # END NETWORK CONNECTION #
  33. PROC MESSAGE; # DISPLAY AND DAYFILE A MESSAGE #
  34. END
  35. #
  36. **
  37. #
  38.  
  39. ITEM ACN I; # CONNECTION NUMBER #
  40. ITEM ACNSTAT S:SOCKSTAT; # SOCKET STATUS #
  41.  
  42. ARRAY ENDMSG [00:00] S(3);
  43. BEGIN
  44. ITEM END$TEXT C(00,00,24) = ["IPP-OPERATOR TERMINATED."];
  45. ITEM END$ZBYTE U(02,24,36) = [0];
  46. END
  47. CONTROL EJECT;
  48.  
  49. #
  50. **** START MAIN PROCEDURE
  51. #
  52.  
  53. IF NOT SHUTF [0]
  54. THEN
  55. BEGIN # IDLE DOWN REQUESTED #
  56.  
  57. FOR ACN = MINACN$ STEP 1 UNTIL MAXACN$
  58. DO
  59. BEGIN # ABORT OPEN CONNECTIONS #
  60. IF ACN$CONNECT [ACN]
  61. THEN
  62. BEGIN
  63. IPPABOS (ACN, ACNSTAT);
  64. END
  65. END # ABORT OPEN CONNECTIONS #
  66.  
  67. BLOCK = FALSE; # NON-BLOCKING MODE FOR INPUT #
  68. FOR ACN = 0
  69. WHILE (NUMACN GR 0)
  70. DO
  71. BEGIN
  72. IPINITH; # CLEAR OUT INPUT QUEUE #
  73. END
  74.  
  75. END # IDLE DOWN REQUESTED #
  76.  
  77. MESSAGE (ENDMSG [0], 0);
  78. IPPENDN; # CALL NETOFF TO TERMINATE #
  79.  
  80. STOP; # CONTROL DOES NOT RETURN #
  81.  
  82. END # IPISPSI #
  83.  
  84. TERM
cdc/nos2.source/nam5871/ipispsi.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator