User Tools

Site Tools


cdc:nos2.source:nam5871:hcrcbu

HCRCBU

Table Of Contents

  • [00009] PRGM HCRCBU
  • [00062] PROC BLINK
  • [00063] PROC MGETS
  • [00064] PROC OSCHAPP
  • [00065] PROC XTRACE

Source Code

HCRCBU.txt
  1. *DECK HCRCBU
  2. USETEXT NIPDEF
  3. USETEXT ACNB
  4. USETEXT AHEADER
  5. USETEXT AT
  6. USETEXT PARAMS
  7. USETEXT PT
  8. USETEXT SUPMSG
  9. PRGM HCRCBU;
  10. STARTIMS;
  11. #
  12. *1DC HCRCBU
  13. *
  14. * 1. PROC NAME AUTHOR DATE
  15. * HCRCBU C. BITTNER 82/02/01
  16. *
  17. * 2. FUNCTIONAL DESCRIPTION
  18. * SEND CR/CB/U TO NVF
  19. *
  20. * 3. METHOD USED
  21. * ALLOCATE BUFFER FOR MESSAGE
  22. * SET UP APPLICATION BLOCK HEADER
  23. * SET UP CR/CB/U MESSAGE
  24. * QUEUE MESSAGE ON NVF-S ACB
  25. *
  26. * 4. ENTRY PARAMETERS
  27. * PARAMS1 - REASON CODE FOR CONNECTION TERMINATION
  28. * PARAMS2 - ACNB ADDRESS
  29. *
  30. * 5. EXIT PARAMETERS
  31. * NONE
  32. *
  33. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  34. * NIPDEF ACNB AHEADER
  35. * PARAMS PT SUPMSG
  36. * AT
  37. *
  38. * 7. ROUTINES CALLED
  39. * BLINK - QUEUE MESSAGE ON APPL-S ACB
  40. * MGETS - ALLOCATE EMTPY BUFFER
  41. * OSCHAPP - SCHEDULE APPLICATION
  42. * XTRACE - TRACE PROCEDURE CALL
  43. *
  44. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  45. * THIS IS A SECONDARY OVERLAY CALLED BY HCSTTP.
  46. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE SECONDARY
  47. *CALL OSSIZE
  48. *
  49.  #
  50. STOPIMS;
  51.  
  52. #
  53.   PARAMS1 - REASON CODE FOR CONNECTION TERMINATION
  54.   PARAMS2 - ACNB ADDRESS
  55. #
  56.  
  57. #
  58.   EXTERNAL VARIABLES
  59. #
  60. XREF
  61. BEGIN
  62. PROC BLINK; # QUEUE MSG ON APPL-S ACB #
  63. PROC MGETS; # ALLOCATE EMPTY BUFFER #
  64. PROC OSCHAPP; # SCHEDULE APPLICATION #
  65. PROC XTRACE; # TRACE PROCEDURE CALL #
  66. LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  67. END
  68.  
  69. #
  70.   INTERNAL VARIABLES
  71. #
  72. ITEM BUFADDR; # SM BUFFER #
  73. #**********************************************************************#
  74.  
  75. BEGIN
  76.  
  77. CONTROL IFEQ DEBUG,1;
  78. XTRACE("HCRCB");
  79. CONTROL FI;
  80.  
  81. # GET BUFFER TO HOLD CR/CB/U #
  82.  
  83. MGETS(LCRCB + BLKHSIZE + ABHSIZE,BUFADDR,TRUE);
  84.  
  85. # SET UP APPLICATION BLOCK HEADER #
  86.  
  87. P<AHEADER> = BUFADDR + BLKHSIZE; # ADDR TO HOLD ABH #
  88. ABHABT[0] = APPCMD; # BLOCK TYPE #
  89. ABHACT[0] = CT60TRANS; # CHARACTER TYPE #
  90. ABHTLC[0] = LCRCB; # TEXT LENGTH #
  91.  
  92. # SET UP CR/CB/U MESSAGE #
  93.  
  94. P<SUPMSG> = BUFADDR + BLKHSIZE + ABHSIZE; # FWA OF TEXT #
  95. P<SMNVF> = P<SUPMSG>; # BASE CR/CB #
  96. PFCSFC[0] = CRCB; # SET FUNCTION CODE #
  97. CRRCB[0] = RCBRK ;
  98. P<ACNB> = PARAMS2;
  99. IF ACNBAN[0] EQ NVFAN
  100. THEN # T-A CONNECTION TO NVF #
  101. BEGIN
  102. CRNACN[0] = ACNBACN[0]; # NVF CONNECTION NUMBER #
  103. CRCAACN[0] = 0; # CN ASSIGNED TO APP THAT HAD THE CONN #
  104. END
  105. ELSE # NOT CONNECTED TO NVF #
  106. BEGIN
  107. CRNACN[0] = 0; # NVF CONNECTION NUMBER #
  108. CRCAACN[0] = ACNBACN[0]; # CN ASSIGNED TO APP THAT HAD THE CON#
  109. END
  110. CRDT[0] = ACNBDT[0]; # DEVICE TYPE #
  111. CRCBTC[0] = ACNBTC[0];
  112. CRVCB[0] = ACNBVCBO[0]; # VCB ORDINAL #
  113. CRAN[0] = ACNBAN[0]; # APP NO. OF APP WHICH HELD THE CONN #
  114. IF ACNBLIM[0]
  115. THEN # CONNECTION IN LIMBO #
  116. CRLIMBO[0] = TRUE;
  117.  
  118. # QUEUE CR/CB/U ON NVF-S ACB #
  119.  
  120.  
  121. BLINK(BUFADDR,ATACBA[NVFAN]); # QUEUE MSG ON APP-S ACB #
  122. OSCHAPP(ATACBA[NVFAN]); # SCHEDULE APPLICATION #
  123. GOTO RJMAIN; # RETURN TO CALLING PROGRAM #
  124. END
  125. TERM
cdc/nos2.source/nam5871/hcrcbu.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator