User Tools

Site Tools


cdc:nos2.source:nam5871:nicntea

NICNTEA

Table Of Contents

  • [00009] PRGM NICNTEA
  • [00059] PROC MGETS
  • [00060] PROC NFOB
  • [00061] PROC XTRACE

Source Code

NICNTEA.txt
  1. *DECK NICNTEA
  2. USETEXT NIPDEF
  3. USETEXT AHEADER
  4. USETEXT LLCB
  5. USETEXT NHEADER
  6. USETEXT PARAMS
  7. USETEXT SUPMSG
  8.  
  9. PRGM NICNTEA; # SEND ICN/TE/A RC=1-8 TO CCP #
  10. STARTIMS;
  11. #
  12. *1DC NICNTEA
  13. *
  14. * 1. PROC NAME AUTHOR DATE
  15. * NICNTEA C. BITTNER 81/07/24
  16. *
  17. * 2. FUNCTIONAL DESCRIPTION
  18. * SEND ABNORMAL RESPONSE TO TERMINAL CONNECTION REQUEST
  19. * (ICN/TE/A RC=1-8)
  20. *
  21. * 3. METHOD USED
  22. * ALLOCATE A BUFFER FOR THE MESSAGE
  23. * SET UP APPLICATION BLOCK HEADER
  24. * SET UP TEXT FOR ICN/TE/A MESSAGE
  25. * LINK MESSAGE ON PIP OUTBOUND CHAIN
  26. *
  27. * 4. ENTRY PARAMETERS
  28. * PARAMS1 - REASON CODE (RC=1-8)
  29. * PARAMS2 - NETWORK CONNECTION NUMBER
  30. * PARAMS3 - LLCB ADDRESS
  31. *
  32. * 5. EXIT PARAMETERS
  33. * NONE
  34. *
  35. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  36. * NIPDEF AHEADER
  37. * LLCB OSSIZE
  38. * PARAMS SUPMSG
  39. *
  40. * 7. ROUTINES CALLED
  41. * MGETS - ALLOCATE EMPTY BUFFER
  42. * NFOB - LINK BUFFER ON PIP OUTBOUND CHAIN
  43. * XTRACE - TRACE PROCEDURE CALL
  44. *
  45. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  46. * THIS PROGRAM IS A SECONDARY OVERLAY LOADED BY
  47. * SUBROUTINE OVLCALL.
  48. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE SECONDARY
  49. *CALL OSSIZE
  50. *
  51.  #
  52. STOPIMS;
  53.  
  54. #
  55.   EXTERNAL VARIABLES
  56. #
  57. XREF
  58. BEGIN
  59. PROC MGETS; # ALLOCATE EMPTY BUFFER #
  60. PROC NFOB; # LINK BUFFER TO PIP OUTBOUND CHAIN #
  61. PROC XTRACE; # TRACE PROCEDURE CALL #
  62. LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  63. END
  64.  
  65. #
  66.   INTERNAL VARIABLES
  67. #
  68. ITEM BUFADDR; # SM BUFFER #
  69.  
  70.  
  71. #**********************************************************************#
  72.  
  73. BEGIN
  74.  
  75. CONTROL IFEQ DEBUG,1;
  76. XTRACE("NICNT") ;
  77. CONTROL FI;
  78.  
  79. # GET BUFFER TO HOLD ICN/TE/A #
  80. MGETS(LICNTER + BLKHSIZE + ABHSIZE,BUFADDR,TRUE);
  81.  
  82. # SET UP APPLICATION BLOCK HEADER #
  83. P<AHEADER> = BUFADDR + BLKHSIZE; # ADDR TO HOLD ABH #
  84. ABHABT[0] = APPCMD; # BLOCK TYPE #
  85. ABHACT[0] = CT8ASCII; # CHARACTER TYPE #
  86. ABHTLC[0] = LICNTEA; # TEXT LENGTH #
  87.  
  88. # SET UP ICN/TE/A MESSAGE #
  89. P<SUPMSG> = BUFADDR + BLKHSIZE + ABHSIZE; # FWA OF TEXT #
  90. P<SMNIP> = P<SUPMSG>;
  91. PFCSFC[0] = ICNTEA; # SET FUNCTION CODE #
  92. ICNCN[0] = PARAMS2; # NETWORK CONNECTION NUMBER #
  93. ICNRTE[0] = PARAMS1; # REASON CODE #
  94. P<LLCB> = PARAMS3;
  95.  
  96. # LINK MESSAGE TO PIP OUTBOUND CHAIN #
  97. NFOB(BUFADDR,P<LLCB>);
  98. GOTO RJMAIN; # RETURN TO CALLING PROGRAM #
  99. END
  100. TERM
cdc/nos2.source/nam5871/nicntea.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator