home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / sources / 2897 < prev    next >
Encoding:
Text File  |  1992-12-29  |  4.1 KB  |  116 lines

  1. Newsgroups: alt.sources
  2. Path: sparky!uunet!mcsun!sun4nl!tedux!htbrug!herman
  3. From: herman@htbrug.hobby.nl (HAJ ten Brugge)
  4. Subject: prototol 'G' added in Taylor-UUCP
  5. Message-ID: <1992Dec28.175925.520@htbrug.hobby.nl>
  6. Organization: Home Office
  7. X-Newsreader: TIN [version 1.1 PL7]
  8. Date: Mon, 28 Dec 1992 17:59:25 GMT
  9. Lines: 105
  10.  
  11. History:
  12.  
  13. I am a new news user and used UUCP from SVR3 and SVR3 for a few years
  14. to copy files to a friend. I always used to 'G' protocol for this transfers
  15. because it is the fastest way to get  the job done.
  16. When I joined news my forwarder had Taylor-UUCP running which allowed
  17. only protocol 'g' with a windowsize of 7 and a packetsize of '64'. I
  18. asked him if he could use the uucico program which came with his UNIX 
  19. version because then I could use protocol 'g' with a windowsize of '7' 
  20. and a packetsize of '128'.
  21. A few days ago I got the sources of Taylor-UUCP and saw that is easy
  22. to modify it to allow the 'G' protocol to be used (see patch below).
  23.  
  24. This was measured on newspackets with a size of approx. 250000 bytes and
  25. an 14.4K modem.
  26.  
  27. protocol used    windowsize     packetsize    transferrate
  28. --------------------------------------------------------------
  29.    'g'           7         64        1485 bytes/sec
  30.    'g'           7        128        1614 bytes/sec
  31.    'G'           7        512        1666 bytes/sec
  32.  
  33. The following patches have to be applied to Taylor-UUCP to use the 'G'
  34. protocol from BNU (Basic Networking Utilities).
  35. The first patch is there to make an extra entry in the allowable protocols.
  36. The second patch modifies protg.c to send always packages of the same
  37. size if protocol 'G' is selected. I alse increased the minimum value of
  38. the packet size into 128 because BNU can handle this packet size when
  39. protocol 'g' is selected.
  40. I made this patch on release 1.03 of Taylor UUCP. I know there is a newer
  41. version and hope that this patch will also work on that version
  42.  
  43.  
  44. -------------------- CUT HERE -------------------------------
  45. *** uucico.c.org    Mon Dec 21 18:15:28 1992
  46. --- uucico.c    Sat Dec 26 10:01:46 1992
  47. ***************
  48. *** 334,339 ****
  49. --- 334,342 ----
  50.     { 'g', FALSE, RELIABLE_EIGHT,
  51.         asGproto_params, fgstart, fgshutdown, fgsendcmd, zggetspace,
  52.         fgsenddata, fgprocess, fgwait, NULL },
  53. +   { 'G', FALSE, RELIABLE_EIGHT,
  54. +       asGproto_params, fgstart, fgshutdown, fgsendcmd, zggetspace,
  55. +       fgsenddata, fgprocess, fgwait, NULL },
  56.     { 'f', FALSE, RELIABLE_RELIABLE,
  57.         asFproto_params, ffstart, ffshutdown, ffsendcmd, zfgetspace,
  58.         ffsenddata, ffprocess, ffwait, fffile },
  59. *** protg.c.org    Mon Dec 21 18:15:25 1992
  60. --- protg.c    Sat Dec 26 21:48:37 1992
  61. ***************
  62. *** 763,774 ****
  63.       {
  64.         int csize;
  65.   
  66. !       /* If the remote packet size is larger than 64 (the default,
  67.            which may indicate an older UUCP package), try to fit
  68.            this command into a smaller packet.  We still always send
  69.            a complete packet, though.  */
  70.   
  71. !       if (iGremote_packsize <= 64)
  72.           csize = iGremote_packsize;
  73.         else
  74.           {
  75. --- 763,774 ----
  76.       {
  77.         int csize;
  78.   
  79. !       /* If the remote packet size is larger than 128 (the default,
  80.            which may indicate an older UUCP package), try to fit
  81.            this command into a smaller packet.  We still always send
  82.            a complete packet, though.  */
  83.   
  84. !       if (iGremote_packsize <= 128 || qProto->bname == 'G')
  85.           csize = iGremote_packsize;
  86.         else
  87.           {
  88. ***************
  89. *** 876,885 ****
  90.   
  91.     if (cdata < iGremote_packsize)
  92.       {
  93. !       /* If the remote packet size is larger than 64, the default, we
  94.        can assume they can handle a smaller packet as well, which
  95.        will be more efficient to send.  */
  96. !       if (iGremote_packsize > 64)
  97.       {
  98.         /* The packet size is 1 << (iseg + 4).  */
  99.         iseg = 1;
  100. --- 876,885 ----
  101.   
  102.     if (cdata < iGremote_packsize)
  103.       {
  104. !       /* If the remote packet size is larger than 128, the default, we
  105.        can assume they can handle a smaller packet as well, which
  106.        will be more efficient to send.  */
  107. !       if (iGremote_packsize > 128 && qProto->bname != 'G')
  108.       {
  109.         /* The packet size is 1 << (iseg + 4).  */
  110.         iseg = 1;
  111.  
  112. -- 
  113. ---------------------------------------------
  114. | Herman ten Brugge  herman@htbrug.hobby.nl |
  115. ---------------------------------------------
  116.