User Tools

Site Tools


cdc:nos2.source:nam5871:ipispce

IPISPCE

Table Of Contents

  • [00003] PROC IPISPCE
  • [00005] IPISPCE - PROCESS CON/END/N SUPERVISORY MESSAGE.
  • [00034] PROC IPIAIPA

Source Code

IPISPCE.txt
  1. *DECK IPISPCE
  2. USETEXT TEXTIPL
  3. PROC IPISPCE;
  4. *CALL COPYRITE CDCNET - COPYRIGHT CONTROL DATA. 1992.
  5. # TITLE IPISPCE - PROCESS CON/END/N SUPERVISORY MESSAGE. #
  6.  
  7. BEGIN # IPISPCE #
  8. #
  9. ** IPISPCE PROCESS CON/END/N SUPERVISORY MESSAGE.
  10. *
  11. * THIS PROCEDURE PROCESSES A CON/END/N SUPERVISORY MESAGE.
  12. *
  13. * PROC IPISPCE
  14. *
  15. * ENTRY P<APSM> = PTR TO INPUT SUPERVISORY MESSAGE (*INPBUF*).
  16. * NUMACN = COUNT OF CURRENT OPEN CONNECTIONS.
  17. *
  18. * EXIT NUMACN = COUNT OF CURRENT OPEN CONNECTIONS.
  19. * ACN ENTRY CLEARED.
  20. *
  21. * METHOD IF THE CONNECTION STATE IS NOT *CLOSING* THEN THE
  22. * CON/END/N IS TREATED AS A NAM PROTOCOL ERROR.
  23. *
  24. * IF THE CONNECTION STATE IS *CLOSING* THEN THE ACN
  25. * CONNECTION ENTRY IS CLEARED AND THE NUMBER OF OPEN
  26. * CONNECTION IS DECREMENTED.
  27. #
  28.  
  29. #
  30. **** PROC IPISPCE - XREF LIST
  31. #
  32. XREF
  33. BEGIN
  34. PROC IPIAIPA; # ABORT THE IP APPLICATION #
  35. END
  36.  
  37. CONTROL EJECT;
  38. #
  39. **** START MAIN PROCEDURE
  40. #
  41.  
  42. CURACN = CONACN [0];
  43.  
  44. #
  45. **** IF THE CONNECTION STATE IS NOT *CLOSING*, TREAT AS A NAM PROTOCOL
  46. * ERROR.
  47. *
  48. #
  49.  
  50. IF (ACN$STATE [CURACN] NQ S"CLOSING")
  51. THEN
  52. BEGIN # END WITH NAM PROTOCOL ERROR #
  53. IPIAIPA (NCONENDN$);
  54. RETURN;
  55. END
  56.  
  57. NUMACN = NUMACN - 1; # DECREMENT NO OF CONNECTD C/N #
  58.  
  59. ACN$STATE [CURACN] = S"CLOSED";
  60.  
  61. RETURN; # RETURN TO CALLER #
  62.  
  63. END # IPISPCE #
  64.  
  65. TERM
cdc/nos2.source/nam5871/ipispce.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator