User Tools

Site Tools


cdc:nos2.source:nam5871:netput

NETPUT

Table Of Contents

  • [00015] PROC NETPUT(HA,ATA)
  • [00080] PROC NP$ERR
  • [00081] PROC NP$PUT
  • [00082] PROC NP$SEND
  • [00083] PROC NP$UCV
  • [00084] PROC NP$USI
  • [00086] PROC NETXFRC

Source Code

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