User Tools

Site Tools


cdc:nos2.source:nam5871:ipiaipa

IPIAIPA

Table Of Contents

  • [00003] PROC IPIAIPA (CODE)
  • [00005] IPIAIPA - ABORT IP APPLICATION.
  • [00030] PROC ABORT
  • [00031] PROC IPPENDN
  • [00032] PROC MESSAGE

Source Code

IPIAIPA.txt
  1. *DECK IPIAIPA
  2. USETEXT TEXTIPL
  3. PROC IPIAIPA (CODE);
  4. *CALL COPYRITE CDCNET - COPYRIGHT CONTROL DATA. 1992.
  5. # TITLE IPIAIPA - ABORT IP APPLICATION. #
  6.  
  7. BEGIN # IPIAIPA #
  8. #
  9. **** IPIAIPA ABORT THE IP APPLICATION
  10. *
  11. * THIS PROCEDURE TERMINATES THE SOCKET APPLICATION WHEN
  12. * NAM PROTOCOL ERRORS OR INTERNAL ERRORS ARE ENCOUNTERED.
  13. *
  14. * PROC IPIAIPA (CODE)
  15. *
  16. * ENTRY CODE = ERROR CODE FOR ABORTING FILE SERVER.
  17. *
  18. * EXIT APPLICATION ABORTED.
  19. *
  20. * METHOD DAYFILE APPROPRIATE MESSAGE.
  21. * ABORT.
  22. *
  23. #
  24.  
  25. #
  26. **** PROC IPIAIPA - XREF LIST
  27. #
  28. XREF
  29. BEGIN
  30. PROC ABORT; # ABORT JOB -MACREL- #
  31. PROC IPPENDN; # END NETWORK #
  32. PROC MESSAGE; # DISPLAY AND DAYFILE A MESSAGE #
  33. END
  34. #
  35. **
  36. #
  37. ITEM CODE I; # REASON FOR ENDING CONNECTIONS #
  38.  
  39.  
  40. #
  41. * THIS ARRAY DEFINES ALL THE ERROR MESSAGES FOR ABORTING.
  42. #
  43. ARRAY ERR$MSG [00:NLAST$] S(6);
  44. BEGIN
  45. ITEM ERR$TEXT C(00,00,52) =
  46. ["APPLICATION ABORT, ERR/LGL RECEIVED. ",
  47. "APPLICATION ABORT, FC/NAK RECEIVED. ",
  48. "APPLICATION ABORT, UNEXPECTED CON/ACRQ/A RECEIVED. ",
  49. "APPLICATION ABORT, UNEXPECTED CON/CB/R RECEIVED. ",
  50. "APPLICATION ABORT, UNEXPECTED CON/END/N RECEIVED. ",
  51. "APPLICATION ABORT, INVALID CON/REQ/R RECEIVED. ",
  52. "APPLICATION ABORT, UNEXPECTED FC/ACK RECEIVED. ",
  53. "APPLICATION ABORT, FC/INIT RECEIVED. ",
  54. "APPLICATION ABORT, DATA RECEIVED IN WRONG STATE. ",
  55. "APPLICATION ABORT, INVALID UDP DATA RECEIVED. ",
  56. "APPLICATION ABORT, INTERNAL ERROR. ",
  57. ];
  58. ITEM ERR$ZBYTE U(05,12,48) = [0,NLAST$(0)];
  59. END
  60.  
  61. CONTROL EJECT;
  62. #
  63. **** START MAIN PROCEDURE
  64. #
  65.  
  66. IF CODE GR NLAST$
  67. THEN
  68. BEGIN # CODE OUTSIDE RANGE #
  69. CODE = INTERROR$; # FLAG IT AS AN INTERNAL ERROR #
  70. END
  71.  
  72. MESSAGE (ERR$MSG [CODE], 0); # DAYFILE MESSAGE #
  73.  
  74. IPPENDN; # TERMINATE NAM CONNECTION #
  75.  
  76. ABORT;
  77.  
  78. STOP;
  79.  
  80. END # IPIAIPA #
  81.  
  82. TERM
cdc/nos2.source/nam5871/ipiaipa.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator