Changi NNTP Server 1.0

[ Bottom of Page | Previous Page | Next Page | Table of Contents ]

Changing Priority

The following script has been provided by Ian Timms. He placed a call to it at the front of his TCPSTART.CMD file, but to run it you will obviously need RXASYNC.DLL, which can be found on hobbes.nmsu.edu and ftp.leo.org as RXASYN20.ZIP. What this does is set the session priority to time critical, thus all TCP services started from this session and its children get a significant boost, and with no apparent drawbacks so far.
/* SetPri30.Cmd */
say 'Loading RxAsync.DLL'
if RxFuncQuery('RxAsyncLoadFuncs') then do
   /* load the load-function */
   call RxFuncAdd 'RxAsyncLoadFuncs', 'RXASYNC', 'RxAsyncLoadFuncs'
   /* load the functions themselves */
   rc = RxAsyncLoadFuncs()
   if rc <> 0 then do
      say 'RxAsyncLoadFuncs failed with rc=>'rc'<'
      exit
   end
end
/* set session priority 3,0 */
rc = RxAsyncPriority( 3, 0 )
if rc <> 0
   then say 'RxAsyncPriority failed with rc=>'rc'<'
   else say 'Session priority set to 3,0.'
Exit

[ Top of Page | Previous Page | Next Page | Table of Contents ]


URL: changi/manual/syslogd.html
Created: 14 December 1996
Revised: 21 December 1996
Author: Ian Timms <itimms@ariel.ucs.unimelb.edu.au>