User Tools

Site Tools


cdc:nos2.source:nam5871:ipispcb

IPISPCB

Table Of Contents

  • [00003] PROC IPISPCB
  • [00005] IPISPCB - PROCESS CON/CB SUPERVISORY MESSAGE.
  • [00033] PROC IPIAIPA

Source Code

IPISPCB.txt
  1. *DECK IPISPCB
  2. USETEXT TEXTIPL
  3. PROC IPISPCB;
  4. *CALL COPYRITE CDCNET - COPYRIGHT CONTROL DATA. 1992.
  5. # TITLE IPISPCB - PROCESS CON/CB SUPERVISORY MESSAGE. #
  6.  
  7. BEGIN # IPISPCB #
  8. #
  9. **** IPISPCB PROCESS CON/CB SUPERVISORY MESSAGE.
  10. *
  11. * THIS PROCEDURE PROCESSES A CON/CB SUPERVISORY MESSAGE.
  12. *
  13. * PROC IPISPCB
  14. *
  15. * ENTRY P<APSM> = PTR TO INPUT SUPERVISORY MESSAGE (*INPBUF*).
  16. *
  17. * EXIT ACN ENTRY UPDATED PROPERLY.
  18. *
  19. * METHOD IF THE CONNECTION IS NOT CONNECTED OR THE STATE NOT
  20. * *CLOSING*, THEN TREAT IT AS A NAM PROTOCOL ERROR.
  21. *
  22. * IF THE CONNECTION STATE IS *CONNECT* OR *OPEN*, UPDATE
  23. * THE ACN TO INDICATE THE CONNECTION IS BROKEN.
  24. * THE *IPPABOS* PROCEDURE MUST BE CALLED BY THE USER
  25. * TO COMPLETE CONNECTION CLEAN-UP.
  26. #
  27.  
  28. #
  29. **** PROC IPISPCB - XREF LIST
  30. #
  31. XREF
  32. BEGIN
  33. PROC IPIAIPA; # ABORT THE IP APPLICATION #
  34. END
  35. #
  36. **
  37. #
  38.  
  39. CONTROL EJECT;
  40. #
  41. **** START MAIN PROCEDURE
  42. #
  43.  
  44. CURACN = CONACN [0];
  45. #
  46. **** CONNECTION STATE IS NOT ACTIVE THEN TREAT IT AS A NAM PROTOCOL
  47. * ERROR.
  48. *
  49. #
  50. IF (NOT ACN$CONNECT [CURACN]) AND
  51. (ACN$STATE [CURACN] NQ S"CLOSING")
  52. THEN
  53. BEGIN
  54. IPIAIPA (NCONCB$);
  55. RETURN;
  56. END
  57. #
  58. **** CONNECTION STATE IS CLOSING THEN IGNORE THE MESSAGE.
  59. #
  60. IF (ACN$STATE [CURACN] NQ S"CLOSING")
  61. THEN
  62. BEGIN
  63. ACN$ABORT [CURACN] = TRUE;
  64. END
  65.  
  66. RETURN; # RETURN TO CALLER #
  67.  
  68. END # IPISPCB #
  69.  
  70. TERM
cdc/nos2.source/nam5871/ipispcb.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator