User Tools

Site Tools


cdc:nos2.source:nam5871:ipispca

IPISPCA

Table Of Contents

  • [00003] PROC IPISPCA
  • [00005] IPISPCA - PROCESS CON/ACRQ/A SUPERVISORY MESSAGE
  • [00035] PROC IPIAIPA
  • [00036] PROC MESSAGE
  • [00037] FUNC XCDD C(10)

Source Code

IPISPCA.txt
  1. *DECK IPISPCA
  2. USETEXT TEXTIPL
  3. PROC IPISPCA;
  4. *CALL COPYRITE CDCNET - COPYRIGHT CONTROL DATA. 1992.
  5. # TITLE IPISPCA - PROCESS CON/ACRQ/A SUPERVISORY MESSAGE #
  6.  
  7. BEGIN # IPISPCA #
  8. #
  9. **** IPISPCA PROCESS CON/ACRQ/A SUPERVISORY MESSAGE
  10. *
  11. * THIS PROCEDURE PROCESSES A CON/ACRQ/A SUPERVISORY MESSAGE.
  12. *
  13. * PROC IPISPCA
  14. *
  15. * ENTRY P<ABH> = PTR TO INPUT APPLICATION BLOCK HEADER (*IABH*).
  16. * ABHABN = C/N TYPE WHICH IS USED AS INDEX INTO ACN
  17. * P<APSM> = PTR TO INPUT SUPERVISORY MESSAGE (*INPBUF*).
  18. * CURACN = FILE SERVER CONNECTION NUMBER.
  19. *
  20. * EXIT ISS$STATUS = APPROPRIATE STATUS OF SOCKET
  21. *
  22. * METHOD ISSUE A DAYFILE MESSAGE TO FLAG THE PROBLEM. SET THE
  23. * ABORT STATUS IN THE INITIATING SOCKET STATUS WORD.
  24. * THE APPLICATION IS ABORTED IF A CONNECTION IS NOT IN
  25. * THE PROCESS OF BEING ESTABLISHED.
  26. #
  27.  
  28. DEF FATALERR # 02 #;
  29. #
  30. **** PROC IPISPCA - XREF LIST
  31. #
  32.  
  33. XREF
  34. BEGIN
  35. PROC IPIAIPA; # ABORT IP APPLICATION #
  36. PROC MESSAGE; # ISSUE DAYFILE MESSAGE #
  37. FUNC XCDD C(10);# CONVERT INTEGER TO DECIMAL DISPLAY #
  38. END
  39.  
  40. ARRAY RCMSG[00:00] S(5); # MSG FOR CON/ACRQ/A REASON CODE#
  41. BEGIN
  42. ITEM RCMSG$TEXT C(00,00,36)=
  43. ["CONNECTION FAILED, CON/ACRQ/A, RC ="];
  44. ITEM RCMSG$RC C(03,36,04);
  45. ITEM RCMSG$END U(04,00,60) = [0];
  46. END
  47.  
  48.  
  49. ITEM TEMPCHAR C(10);
  50. #
  51. **
  52. #
  53. CONTROL EJECT;
  54. #
  55. **** START MAIN PROCEDURE
  56. #
  57.  
  58. #
  59. **** DAYFILE THIS EVENT.
  60. #
  61. TEMPCHAR = XCDD (CONRAC [0]); # CONVERT RC TO DISPLAY CODE #
  62. RCMSG$RC = C<06,04>TEMPCHAR;
  63. MESSAGE (RCMSG, 0); # DAYFILE IT. #
  64.  
  65.  
  66. IF (CONAABN [0] NQ CONNECTABN$)
  67. OR (ISS$STATUS [0] NQ SOCKSTAT"WAIT")
  68. THEN
  69. BEGIN # TREAT AS NAM PROTOCOL ERROR #
  70. IPIAIPA (NCONACRQA$);
  71. RETURN;
  72. END
  73.  
  74. IF CONRAC2 LQ FATALERR
  75. THEN
  76. BEGIN # PROBABLY A CONFIGURATION ERROR#
  77. ISS$STATUS [0] = SOCKSTAT"CONFIGERR";
  78. END
  79. ELSE
  80. BEGIN # GATEWAY PROBABLY UNAVAILABLE #
  81. ISS$STATUS [0] = SOCKSTAT"UNAVGATE";
  82. END
  83.  
  84. RETURN; # RETURN TO CALLER #
  85.  
  86. END # IPISPCA #
  87.  
  88. TERM
cdc/nos2.source/nam5871/ipispca.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator