User Tools

Site Tools


cdc:nos2.source:nam5871:netwtq

NETWTQ

Table Of Contents

  • [00007] PROC NETWTQ(NQTIME)
  • [00097] PROC NETWAIT

Source Code

NETWTQ.txt
  1. *DECK NETWTQ
  2. USETEXT AIPDEF
  3. USETEXT NP$NWL
  4. *IF,DEF,XFR
  5. USETEXT NX$ACBX
  6. *ENDIF
  7. PROC NETWTQ(NQTIME);
  8. BEGIN
  9. #
  10. *1DC NETWTQ
  11. *
  12. * 1. PROC NAME AUTHOR DATE
  13. * NETWTQ YIU YIP 07/18/85
  14. *
  15. * 2. FUNCTIONAL DESCRIPTION.
  16. * THIS ROUTINE PERFORMS TWO TWO SECONDS NETWAIT AND
  17. * A NETWAIT FOR THE REST OF THE TIME.
  18. *
  19. * 3. METHOD USED.
  20. * IF NQTIME LQ SHORT$WAIT
  21. * THEN
  22. * NETWAIT(NQTIME,0)
  23. * ELSE
  24. * BEGIN
  25. * XFR$QB[0] = TRUE
  26. * NETWAIT(SHORT$WAIT,0)
  27. * IF XFR$COM2[0]
  28. * THEN
  29. * BEGIN
  30. * GOTO ENDQT
  31. * END
  32. * IF SD$FLAG EQ 0
  33. * THEN
  34. * BEGIN
  35. * IF HEAD EQ FOOT
  36. * THEN
  37. * BEGIN
  38. * IF ID$FLAG EQ 0
  39. * THEN
  40. * BEGIN
  41. * IF (NQTIME - SHORT$WAIT) LQ SHORT$WAIT
  42. * THEN
  43. * BEGIN
  44. * NETWAIT((NQTIME - SHORT$WAIT),0)
  45. * END
  46. * ELSE
  47. * BEGIN
  48. * NETWAIT(SHORT$WAIT,0)
  49. * IF XFR$COM2[0]
  50. * THEN
  51. * BEGIN
  52. * GOTO ENDQT
  53. * END
  54. * IF SD$FLAG EQ 0
  55. * THEN
  56. * BEGIN
  57. * IF HEAD EQ FOOT
  58. * THEN
  59. * BEGIN
  60. * IF ID$FLAG EQ 0
  61. * THEN
  62. * BEGIN
  63. * NETWAIT(NQTIME - SHORT$TIME2,0)
  64. * IF XFR$COM2[0]
  65. * THEN
  66. * BEGIN
  67. * GOTO ENDQT
  68. * END
  69. * END
  70. * END
  71. * END
  72. * END
  73. * END
  74. *ENDQT: XFR$QBC[0] = 0
  75. * RETURN
  76. *
  77. * 4. ENTRY CONDITIONS.
  78. * NQTIME NETWAIT TIME
  79. *
  80. * 5. EXIT CONDITIONS.
  81. * NONE
  82. *
  83. * 6. COMDECKS AND SYMPL TEXT USED.
  84. * AIPDEF CONSTANT DEFINITIONS
  85. * NP$NWL NETWORK WORKLIST TABLE
  86. * NP$ACBX NETXFR COMMON BLOCK
  87. *
  88. *
  89. * 8. DAYFILE MESSAGES OR OTHER IMPORTANT INFORMATION.
  90. * NONE
  91.  #
  92. #
  93.   EXTERNAL ROUTINES CALLED
  94. #
  95. XREF
  96. BEGIN
  97. PROC NETWAIT; # REGULAR NETWAIT #
  98. END
  99. #
  100.   INPUT VARIABLES
  101. #
  102. ITEM NQTIME; # NETWAIT TIME #
  103. #
  104.   LOCAL VARIABLES
  105. #
  106. DEF SHORT$WAIT # 2 #; # SHORT NETWAIT TIME #
  107. DEF SHORT$WAIT2 # 4 #; # FOUR SECONDS NETWAIT #
  108. #**********************************************************************#
  109.  
  110. CONTROL EJECT;
  111. #
  112.   EXECUTABLE CODE BEGINS HERE
  113. #
  114. IF NQTIME LQ SHORT$WAIT # IF NETWAIT IS LESS #
  115. THEN # THAN OR EQUAL TO 2 SECONDS #
  116. BEGIN
  117. NETWAIT(NQTIME,0);
  118. END
  119. ELSE # NETWAIT IS MORE THAN 2 #
  120. BEGIN # SECONDS #
  121. *IF,DEF,XFR
  122. XFR$QB[0] = TRUE; # CALLED THROUGH NETWTQ #
  123. *ENDIF
  124. NETWAIT(SHORT$WAIT,0); # FIRST 2 SECONDS NETWAIT #
  125. *IF,DEF,XFR
  126. IF XFR$COM2[0]
  127. THEN
  128. BEGIN
  129. GOTO ENDQT; # SKIP REST OF NETWAIT TIME #
  130. END
  131. *ENDIF
  132. IF SD$FLAG EQ 0 # NO SUPMSG FOR APP #
  133. THEN
  134. BEGIN
  135. IF HEAD EQ FOOT # NO SM IN SM BUFFER #
  136. THEN
  137. BEGIN
  138. IF ID$FLAG EQ 0 # NO DATA MSGS #
  139. THEN
  140. BEGIN
  141. IF (NQTIME - SHORT$WAIT) LQ SHORT$WAIT # LESS THAN OR #
  142. THEN # EQUAL TO 2 SECONDS LEFT #
  143. BEGIN
  144. NETWAIT((NQTIME - SHORT$WAIT),0); # WAIT FOR REST OF #
  145. # TIME #
  146. END
  147. ELSE
  148. BEGIN # CAN DO ANOTHER 2 SECONDS #
  149. NETWAIT(SHORT$WAIT,0); # SHORT NETWAIT #
  150. *IF,DEF,XFR
  151. IF XFR$COM2[0] # FILE TRANSFER COMPLETED #
  152. THEN
  153. BEGIN
  154. GOTO ENDQT; # SKIP REST OF FILE TRANSFER #
  155. END # TIME #
  156. *ENDIF
  157. IF SD$FLAG EQ 0 # IF NO SUPMSG AVAILABLE #
  158. THEN
  159. BEGIN
  160. IF HEAD EQ FOOT # NO SM IN SM BUFFER #
  161. THEN
  162. BEGIN
  163. IF ID$FLAG EQ 0 # NO DATA AVAILABLE #
  164. THEN
  165. BEGIN
  166. NETWAIT(NQTIME - SHORT$WAIT2,0);
  167. *IF,DEF,XFR
  168. IF XFR$COM2[0] # FILE TRANSFER COMPLETED #
  169. THEN
  170. BEGIN
  171. GOTO ENDQT; # SKIP REST OF FILE XFR TIME #
  172. END
  173. *ENDIF
  174. END
  175. END
  176. END
  177. END
  178. END
  179. END
  180. END
  181. END
  182. *IF,DEF,XFR
  183. ENDQT: XFR$QBC[0] = 0; # CLEAR ENTIRE XFR COMPLETION #
  184. # WORD #
  185. *ENDIF
  186. RETURN; # RETURN TO CALLER #
  187. END # ENDOF BEGIN #
  188. TERM
cdc/nos2.source/nam5871/netwtq.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator