User Tools

Site Tools


cdc:nos2.source:nam5871:ntcntan

NTCNTAN

Table Of Contents

  • [00009] PRGM NTCNTAN
  • [00054] PROC LOCLLCB
  • [00055] PROC MGETS
  • [00056] PROC NFOB
  • [00057] PROC XTRACE

Source Code

NTCNTAN.txt
  1. *DECK NTCNTAN
  2. USETEXT NIPDEF
  3. USETEXT AHEADER
  4. USETEXT LLCB
  5. USETEXT NCNB
  6. USETEXT PARAMS
  7. USETEXT SUPMSG
  8.  
  9. PRGM NTCNTAN;
  10. STARTIMS;
  11. #
  12. *1DC NTCNTAN
  13. *
  14. * 1. PROC NAME AUTHOR DATE
  15. * NTCNTAN C. BITTNER 82/02/01
  16. *
  17. * 2. FUNCTIONAL DESCRIPTION
  18. * SEND TCN/TA/N TO CCP
  19. *
  20. * 3. METHOD USED
  21. * ALLOCATE BUFFER FOR MESSAGE
  22. * SET UP TCN/TA/N MESSAGE
  23. * LINK MESSAGE ON PIP OUTBOUND CHAIN
  24. *
  25. * 4. ENTRY PARAMETERS
  26. * PARAMS1 - NCNB ADDRESS
  27. *
  28. * 5. EXIT PARAMETERS
  29. * NONE
  30. *
  31. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  32. * NIPDEF AHEADER LLCB
  33. * NCNB PARAMS SUPMSG
  34. * OSSIZE
  35. *
  36. * 7. ROUTINES CALLED
  37. * LOCLLCB - LOCATE LLCB
  38. * MGETS - ALLOCATE EMTPY BUFFER
  39. * NFOB - LINK MESSAGE ON PIP OUTBOUND CHAIN
  40. * XTRACE - RECORD PROCEDURE CALL
  41. *
  42. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  43. * THIS OVERLAY IS CALLED BY NCSTTP.
  44. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE SECONDARY
  45. *CALL OSSIZE
  46. *
  47.  #
  48. STOPIMS;
  49. #
  50.   EXTERNAL VARIABLES
  51. #
  52. XREF
  53. BEGIN
  54. PROC LOCLLCB; # LOCATE LLCB #
  55. PROC MGETS; # ALLOCATE EMPTY BUFFER #
  56. PROC NFOB; # LINK MSG ON PIP OUTBOUND CHAIN #
  57. PROC XTRACE; # RECORD PROCEDURE CALL #
  58. LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  59. END
  60. #
  61.   INTERNAL VARIABLES
  62. #
  63. ITEM BUFADDR; # SM BUFFER ADDRESS #
  64.  
  65. #**********************************************************************#
  66.  
  67. BEGIN
  68.  
  69. CONTROL IFEQ DEBUG,1;
  70. XTRACE("CNTAN");
  71. CONTROL FI;
  72.  
  73. # GET BUFFER TO HOLD TCN/TA/N #
  74.  
  75. MGETS(NTCN + BLKHSIZE + ABHSIZE,BUFADDR,TRUE);
  76.  
  77. P<AHEADER> = BUFADDR + BLKHSIZE;
  78. ABHABT[0] = APPCMD; # BLOCK TYPE #
  79. ABHACT[0] = CT8ASCII; # CHARACTER TYPE #
  80. ABHTLC[0] = LTCNN; # LENGTH OF TCN/TA/N #
  81.  
  82. # SET UP TCN/TA/N #
  83.  
  84. P<SUPMSG> = BUFADDR + BLKHSIZE + ABHSIZE;
  85. PFCSFC[0] = TCNTAN;
  86. RB[0] = TRUE; # SET NORMAL RESPONSE BIT #
  87. P<SMNIP> = P<SUPMSG>; # BASE TCN/TA #
  88. P<NCNB> = PARAMS1;
  89. TCNCN[0] = NCNBCN[0];
  90.  
  91. # LINK MESSAGE ON PIP OUTBOUND CHAIN #
  92.  
  93. LOCLLCB(NCNBHN[0],NCNBTN[0],P<LLCB>);
  94. NFOB(BUFADDR,P<LLCB>);
  95. GOTO RJMAIN;
  96. END
  97. TERM
cdc/nos2.source/nam5871/ntcntan.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator