User Tools

Site Tools


cdc:nos2.source:nam5871:netputf

NETPUTF

Table Of Contents

  • [00011] PROC NETPUTF(HA,(NA),TAAA)
  • [00076] PROC NP$ERR
  • [00077] PROC NP$PUT
  • [00078] PROC NP$PUTF
  • [00079] PROC NP$SEND
  • [00080] PROC NP$UCV
  • [00081] PROC NP$USI

Source Code

NETPUTF.txt
  1. *DECK NETPUTF
  2. USETEXT AIPDEF
  3. USETEXT NP$GETS
  4. USETEXT NP$MODE
  5. USETEXT NP$NWL
  6. USETEXT NP$PUTS
  7. USETEXT NP$STAT
  8. *IF,DEF,DEBUG
  9. USETEXT NP$DB
  10. *ENDIF
  11. PROC NETPUTF(HA,(NA),TAAA);
  12. *IF DEF,IMS
  13. #
  14. *1DC NETPUTF
  15. *
  16. * 1. PROC NAME AUTHOR DATE
  17. * NETPUTF J.C. LEE 78/10/10
  18. *
  19. * 2. FUNCTIONAL DESCRIPTION
  20. * ACCEPTS A DATA BLOCK OR A SUPERVISORY BLOCK FROM THE
  21. * APPLICATION, FORMATS A PUTF WORKLIST ENTRY AND SENDS THE
  22. * WORKLIST TO NIP WHEN APPROPRIATE
  23. *
  24. * 3. METHOD USED
  25. * IF THE APPLICATION IS USING THE UPLINE DATA QUEUE FEATURE OR
  26. * THE DOWNLINE BUFFERING FEATURE, THIS PROGRAM CANNOT BE CALLED.
  27. * CALLS NP$PUT INITIALIZE CELLS FOR PUT REQUEST.
  28. * UPON RETURN FROM NP$PUT IT CALLS NP$PUTF TO CONTINUE
  29. * THE FORMAT THE NETPUTF REQUEST. ON RETURN FROM NP$PUTF
  30. * IT WILL UPDATE THE S AND I BITS IN THE NSUP WORD.
  31. * IT CHECK IF THERE IS MORE ROOM FOR ANOTHER WORKLIST
  32. * ENTRY,OR,IF IT IS NOT A SUPERVISORY MESSAGE. IF
  33. * CONDITION ARE TRUE IT RETURN TO THE APPLICATION
  34. * WITHOUT SENDING THE WORKLIST TO NIP.
  35. * SOME SUBSEQUENCE CALL TO AIP WILL TRIGGER THE
  36. * WORKLIST TO BE SENT TO NIP FOR PROCESSING.
  37. *
  38. * 4. ENTRY CONDITIONS
  39. * HA - HEADER AREA.
  40. * NA - NUMBER OF FRAGMENTED BUFFERS IN TAA.
  41. * TAA - TEXT AREA ARRAY.
  42. * NEXT - NEXT AVAILABLE SPACE POINTER IN WORKLIST.
  43. * SPACE$LEFT - NUMBER OF CELLS AVAILABLE IN WORKLIST.
  44. *
  45. * 5. EXIT CONDITIONS
  46. * NEXT - UPDATED TO NEXT AVAILABLE SPACE POINTER IN WORKLIST.
  47. * SPACE$LEFT - UPDATED TO NUMBER OF CELLS AVAILABLE IN WORKLIST.
  48. *
  49. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  50. * AIPDEF NP$CRT NP$DB NP$GETS
  51. * NP$MODE NP$NWL NP$PUTS NP$STAT
  52. *
  53. * 7. ROUTINES CALLED
  54. * NP$PUT - PROCESS A PUT REQUEST.
  55. * NP$PUT - INITIALIZE CELLS FOR PUTF REQUEST.
  56. * NP$PUTF - FORMAT A -PUTF- NWL REQUEST.
  57. * NP$SEND - SEND NWL TO NIP.
  58. * NP$UCV - UPDATE CONTROL VARIABLES.
  59. * NP$USI - UPDATE S AND I BITS IN NS.
  60. *
  61. * 8. DAYFILE MESSAGES
  62. * * NETWORK APPLICATION ABORTED, RC = 58. *
  63. * * NETPUT: REQUEST INVALID FOR DATA QUEUE. *
  64. *
  65.  #
  66. *ENDIF
  67.  
  68. BEGIN
  69.  
  70. *CALL NP$CRT
  71. #
  72.   ROUTINES CALLED
  73. #
  74. XREF
  75. BEGIN
  76. PROC NP$ERR; # ISSUE ERR MSG AND ABORT APP #
  77. PROC NP$PUT; # PROCESS A PUT REQUEST #
  78. PROC NP$PUTF; # FORMAT A -PUTF- NWL ENTRY #
  79. PROC NP$SEND; # SEND NWL TO NIP #
  80. PROC NP$UCV; # UPDATE CONTROL VARIABLES #
  81. PROC NP$USI; # UPDATE S AND I BITS IN NSUP #
  82. END
  83. #
  84.   LOCAL VARIABLES
  85. #
  86. ITEM HA I; # HEADER AREA #
  87. ITEM NA I; # NO OF FRAGMENTED BUFFERS #
  88. ITEM TAAA I; # TEXT AREA ARRAY #
  89. #**********************************************************************#
  90. #
  91.   NETPUTF EXECUTION BEGINS HERE
  92. #
  93. OPCODE = OP$PUTF; # SAVE INPUT PARAM IN COMMON #
  94. LOC$HA = LOC(HA);
  95. LOC$TA = LOC(TAAA);
  96. ACLN = NA; # ACLN SET TO NA #
  97. *IF,DEF,STAT
  98. IAM = TYPE"PUTF";
  99. IF GMBUSE OR DOWNUSE # UPLINE DATA QUEUE OR DOWNLINE#
  100. THEN # BUFFER FEATURE BEING USED #
  101. BEGIN
  102. NP$ERR("58"); # ABORT APP WITH ERROR MESSAGE #
  103. END
  104. *ENDIF
  105.  
  106. *IF DEF,DEBUG
  107. DB$CALL = LOC(NETPUTF);
  108. *ENDIF
  109.  
  110. NP$PUT; # PROCESS A PUT REQUEST #
  111.  
  112. NP$PUTF; # PR0CESS NETPUTF REQUEST #
  113.  
  114. NP$UCV; # UPDATE CONTROL VARIABLES #
  115.  
  116. IF ISSUE
  117. THEN
  118. NP$SEND;
  119.  
  120. NP$USI; # UPDATE THE S AND I BITS #
  121. RETURN;
  122. END # NETPUTF #
  123. TERM
cdc/nos2.source/nam5871/netputf.txt · Last modified: 2023/08/05 17:22 by Site Administrator