User Tools

Site Tools


cdc:nos2.source:nam5871:hsinitr

HSINITR

Table Of Contents

  • [00009] PRGM HSINITR
  • [00061] PROC BLINK
  • [00062] PROC MGETS
  • [00063] PROC OSCHAPP
  • [00064] PROC XTRACE

Source Code

HSINITR.txt
  1. *DECK HSINITR
  2. USETEXT NIPDEF
  3. USETEXT AHEADER
  4. USETEXT AT
  5. USETEXT PARAMS
  6. USETEXT PT
  7. USETEXT SUPMSG
  8.  
  9. PRGM HSINITR;
  10. STARTIMS;
  11. #
  12. *1DC HSINITR
  13. *
  14. * 1. PROC NAME AUTHOR DATE
  15. * HSINITR C. BITTNER 81/09/28
  16. *
  17. * 2. FUNCTIONAL DESCRIPTION
  18. * SENT FC/INIT/R TO APPLICATION TO INDICATE CONNECTION
  19. * INITIALIZED
  20. *
  21. * 3. METHOD USED
  22. * SET UP APPLICATION BLOCK HEADER
  23. * SET UP FC/INIT/R MESSAGE
  24. * QUEUE MESSAGE ON APPLICATION-S ACB
  25. *
  26. * 4. ENTRY PARAMETERS
  27. * PARAMS1 - APPLICATION CONNECTION NO. FOR INITIALIZED CONNECTION
  28. * PARAMS2 - APPLICATION NUMBER
  29. *
  30. * 5. EXIT PARAMETERS
  31. * NONE
  32. *
  33. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  34. * NIPDEF
  35. * AHEADER
  36. * AT
  37. * PARAMS
  38. * PT
  39. * SUPMSG
  40. *
  41. * 7. ROUTINES CALLED
  42. * BLINK - LINK DATA BLOCK TO DATA RING
  43. * MGETS - ALLOCATE EMPTY BUFFER
  44. * OSCHAPP - SCHEDULE APPLICATION
  45. * XTRACE - TRACE PROCEDURE CALL
  46. *
  47. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  48. * THIS IS A SECONDARY OVERLAY CALLED BY HBSTTP.
  49. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE SECONDARY
  50. *CALL OSSIZE
  51. *
  52.  #
  53. STOPIMS;
  54.  
  55. #
  56.   EXTERNAL VARIABLES
  57. #
  58.  
  59. XREF
  60. BEGIN
  61. PROC BLINK; # LINK DATA BLOCK TO DATA RING #
  62. PROC MGETS; # ALLOCATE EMTPY BUFFER #
  63. PROC OSCHAPP; # SCHEDULE APPLICATION #
  64. PROC XTRACE; # TRACE PROCEDURE CALL #
  65. LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  66. END
  67.  
  68. #
  69.   INTERNAL VARIABLES
  70. #
  71.  
  72. ITEM BUFADDR; # BUFFER ADDRESS TO HOLD FC/INIT/R #
  73. ITEM AN; # APPLICATION NUMBER #
  74.  
  75. #**********************************************************************#
  76.  
  77. BEGIN
  78.  
  79. CONTROL IFEQ DEBUG,1;
  80. XTRACE("HSINI") ;
  81. CONTROL FI;
  82.  
  83. AN = PARAMS2; # APPLICATION NUMBER #
  84.  
  85. # GET BUFFER TO HOLD FC/INIT/R #
  86.  
  87. MGETS(LFCINIT + BLKHSIZE + ABHSIZE, BUFADDR, TRUE);
  88.  
  89.  
  90. # SET UP APPLICATION BLOCK HEADER #
  91.  
  92. P<AHEADER> = BUFADDR + BLKHSIZE; # BASE APPLICATION HEADER #
  93. ABHABT[0] = APPCMD; # COMMAND BLOCK #
  94. ABHACT[0] = CT60TRANS; # CHARACTER TYPE - TRANSPARENT #
  95. ABHTLC[0] = LFCINIT; # LENGTH OF FC/INIT/R #
  96. ABHABN[0] = 0; # CLEAR APPLICATION BLOCK NUMBER FIELD #
  97. ABHADR[0] = 0; # CLEAR APPLICATION CONNECTION NO. FIELD #
  98. ABHDBC[0] = 0; # CLEAR DATA BLOCK CLARIFIER FIELD #
  99.  
  100. # SET UP FC/INITR/R #
  101.  
  102. P<SUPMSG> = BUFADDR + BLKHSIZE + ABHSIZE;
  103. PFCSFC[0] = FCINIT; # SET FUNCTION CODE #
  104. FCACN[0] = PARAMS1; # ACN OF INITIALIZED CONNECTION #
  105.  
  106.  
  107. # QUEUE MESSAGE ON APPLICATION-S ACB #
  108.  
  109. BLINK(BUFADDR,ATACBA[AN]); # QUEUE MSG ON APPLS-S ACB #
  110. OSCHAPP(ATACBA[AN]); # SCHEDULE APPLICATION #
  111. GOTO RJMAIN; # RETURN TO CALLING PROGRAM #
  112. END
  113. TERM
cdc/nos2.source/nam5871/hsinitr.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator