User Tools

Site Tools


cdc:nos2.source:nam5871:nicnten

NICNTEN

Table Of Contents

  • [00010] PROC NICNTEN
  • [00056] PROC MGETS
  • [00057] PROC NFOB
  • [00058] PROC XTRACE

Source Code

NICNTEN.txt
  1. *DECK NICNTEN
  2. USETEXT NIPDEF
  3. USETEXT AHEADER
  4. USETEXT NHEADER
  5. USETEXT LLCB
  6. USETEXT NCNB
  7. USETEXT PARAMS
  8. USETEXT SUPMSG
  9.  
  10. PROC NICNTEN; # SEND ICN/TE/N TO CCP #
  11. STARTIMS;
  12. #
  13. *1DC NICNTEN
  14. *
  15. * 1. PROC NAME AUTHOR DATE
  16. * NICNTEN C. BITTNER 81/07/24
  17. *
  18. * 2. FUNCTIONAL DESCRIPTION
  19. * SEND ICN/TE/N TO CCP
  20. *
  21. * 3. METHOD USED
  22. * ALLOCATE A BUFFER FOR THE MESSAGE
  23. * SET UP APPLICATION BLOCK HEADER
  24. * SET UP TEXT FOR ICN/TE/N MESSAGE
  25. * LINK MESSAGE TO PIP OUTBOUND CHAIN
  26. *
  27. * 4. ENTRY PARAMETERS
  28. * PARAMS1 - NETWORK CONNECTION NUMBER
  29. * PARAMS2 - LLCB ADDRESS
  30. *
  31. * 5. EXIT PARAMETERS
  32. * NONE
  33. *
  34. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  35. * NIPDEF AHEADER
  36. * LLCB PARAMS
  37. * SUPMSG
  38. *
  39. * 7. ROUTINES CALLED
  40. * MGETS - ALLOCATE EMPTY BUFFER
  41. * NFOB - LINK BUFFER TO PIP OUTBOUND CHAIN
  42. * XTRACE - TRACE PROCEDURE CALL
  43. *
  44. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  45. * THIS PROCEDURE IS CALLED BY SECONDARY OVERLAY COMPCON
  46. * VIA NCSTTP.
  47. *
  48.  #
  49. STOPIMS;
  50.  
  51. #
  52.   EXTERNAL VARIABLES
  53. #
  54. XREF
  55. BEGIN
  56. PROC MGETS; # ALLOCATE EMPTY BUFFER #
  57. PROC NFOB; # LINK BUFFER TO PIP OUTBOUND CHAIN #
  58. PROC XTRACE; # TRACE PROCEDURE CALL #
  59. END
  60.  
  61. #
  62.   INTERNAL VARIABLES
  63. #
  64. ITEM BUFADDR; # SM BUFFER ADDRESS #
  65.  
  66. #**********************************************************************#
  67.  
  68. BEGIN
  69.  
  70. CONTROL IFEQ DEBUG,1;
  71. XTRACE("ICNTN") ;
  72. CONTROL FI;
  73.  
  74. # GET BUFFER TO HOLD ICN/TE/N#
  75. MGETS(LICNTER + BLKHSIZE + ABHSIZE,BUFADDR,TRUE);
  76.  
  77. # SET UP APPLICATION BLOCK HEADER #
  78. P<AHEADER> = BUFADDR + BLKHSIZE; # ADDR TO HOLD ABH #
  79. ABHABT[0] = APPCMD; # BLOCK TYPE #
  80. ABHACT[0] = CT8ASCII; # CHARACTER TYPE #
  81. ABHTLC[0] = NICNTER; # TEXT LENGTH #
  82.  
  83. # SET UP ICN/TE/N MESSAGE #
  84. P<SUPMSG> = BUFADDR + BLKHSIZE + ABHSIZE;
  85. P<SMNIP> = P<SUPMSG>;
  86. PFCSFC[0] = ICNTEN; # SET FUNCTION CODE #
  87. ICNCN[0] = PARAMS1; # NETWORK CONNECTION NUMBER #
  88. P<LLCB> = PARAMS2;
  89.  
  90. # LINK MESSAGE TO PIP OUTBOUND CHAIN #
  91. NFOB(BUFADDR,P<LLCB>);
  92. RETURN ; # RETURN TO CALLING PROGRAM #
  93. END
  94. TERM
cdc/nos2.source/nam5871/nicnten.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator