User Tools

Site Tools


cdc:nos2.source:nam5871:ipispfa

IPISPFA

Table Of Contents

  • [00003] PROC IPISPFA
  • [00005] IPISPFA - PROCESS FC/ACK SUPERVISORY MESSAGE.
  • [00034] PROC IPIAIPA

Source Code

IPISPFA.txt
  1. *DECK IPISPFA
  2. USETEXT TEXTIPL
  3. PROC IPISPFA;
  4. *CALL COPYRITE CDCNET - COPYRIGHT CONTROL DATA. 1992.
  5. # TITLE IPISPFA - PROCESS FC/ACK SUPERVISORY MESSAGE. #
  6.  
  7. BEGIN # IPISPFA #
  8. #
  9. **** IPISPFA PROCESS FC/ACK SUPERVISORY MESSAGE.
  10. *
  11. * THIS PROCEDURE PROCESSES A FC/ACK SUPERVISORY MESSAGE.
  12. *
  13. * PROC IPISPFA
  14. *
  15. * ENTRY P<APSM> = PTR TO INPUT SUPERVISORY MESSAGE (*INPBUF*).
  16. *
  17. * EXIT APPLICATION CONNECTION ENTRY UPDATED.
  18. *
  19. * METHOD IF THE CONNECTION STATE IS *IDLE* OR *CLOSED* THEN THE
  20. * FC/ACK IS TREATED AS A NAM PROTOCOL ERROR.
  21. *
  22. * IF THE CONNECTION IS ACTIVE, THEN THE OUTSTANDING
  23. * BLOCK COUNT IS INCREMENTED.
  24. *
  25. * ALL OTHER STATES THE FC/ACK IS IGNORED.
  26. *
  27. #
  28.  
  29. #
  30. **** PROC IPISPFA - XREF LIST
  31. #
  32. XREF
  33. BEGIN
  34. PROC IPIAIPA; # ABORT THE IP APPLICATION #
  35. END
  36. #
  37. **
  38. #
  39. CONTROL EJECT;
  40. #
  41. **** START MAIN PROCEDURE
  42. #
  43.  
  44. CURACN = FCACN [0];
  45.  
  46. #
  47. **** IF CONNECTION STATE IS *IDLE* OR *CLOSED* THEN TREAT THE FC/ACK
  48. * AS A NAM PROTOCOL ERROR.
  49. #
  50. IF (ACN$STATE [CURACN] EQ S"IDLE")
  51. OR (ACN$STATE [CURACN] EQ S"CLOSED")
  52. THEN
  53. BEGIN # TREAT AS A NAM PROTOCOL ERROR #
  54. IPIAIPA (NFCACK$);
  55. RETURN;
  56. END
  57. #
  58. **** IF CONNECTED DECREMENT THE OUTSTANDING BLOCK COUNT.
  59. #
  60. IF (ACN$CONNECT [CURACN])
  61. THEN
  62. BEGIN # DECREMENT BLOCK COUNT #
  63. ACN$OBC [CURACN] = ACN$OBC [CURACN] - 1; # DECREMENT BLK COUNT #
  64. END
  65.  
  66. RETURN; # RETURN TO CALLER #
  67.  
  68. END # IPISPFA #
  69.  
  70. TERM
cdc/nos2.source/nam5871/ipispfa.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator