home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / OFFLINE / VALEN130.ZIP / QWKNET.DOC < prev    next >
Text File  |  1993-08-17  |  12KB  |  242 lines

  1.                                   Valence
  2.                           QWK Networking Functions
  3.  
  4.                              by William McBrine
  5.                    Copyright (c) 1993 Iconoclast Software
  6.  
  7.  
  8. :::: INTRODUCTION ::::
  9.  
  10. Beginning with version 1.3, Valence offers node-level QWK networking
  11. functions. You can import net-status .QWK packets and export .REPs to upload
  12. to your hub. These functions are built-in to VALENCE.EXE, and add little
  13. overhead.
  14.  
  15. This file is a bit sketchy, as I'm in a rush. I'll write more for the next
  16. version. In the meantime, I hope your hub sysop can answer most of your QWK
  17. networking questions and help you with your setup.
  18.  
  19. Please read the file QWKNET.CFG for more setup details.
  20.  
  21.  
  22. :::: QWK VERSUS FIDO ::::
  23.  
  24. Perhaps the two most popular BBS networking systems today are QWK and Fido.
  25. Many of you are familiar with Fidonet or Fidonet-technology systems. QWK
  26. nets are less widespread, but are growing rapidly, as more and more systems
  27. gain QWK-net support. Each system has its advantages and disadvantages.
  28.  
  29. QWK nets are generally considered far easier to set up than Fido-type nets.
  30. Not that it would take much. :-) QWK nets import and export directly from
  31. the message base; .PKT files, .MSG files, extra directories, mailers,
  32. nodelists and so on don't clutter up your hard disk. The simple topology of
  33. a QWK network reduces dupes.
  34.  
  35. On the other hand, QWK networks force you to wait online while your hub
  36. packs your mail, which can increase your LD phone costs. (Some QWK doors do
  37. offer prepacking, however.) The absence of a mailer program is a mixed
  38. blessing, because QWK nets allow no file requests. Access in QWK nets is
  39. somewhat restricted; you can only connect through your hub. Private mail may
  40. be more difficult to use than Fido netmail - in the case of Valence, private
  41. mail cannot be sent at all (yet). And setting up a script for a terminal
  42. program to call your hub can be a pain, although there are a few dedicated
  43. programs to automate it.
  44.  
  45. I'd like to tell you that QWK-net importing and exporting with Valence is
  46. faster than Fido importing and exporting with SLMAIL, but that hasn't
  47. materialized. In my benchmarks, I've found the performance to be nearly
  48. identical. However, with QWK nets you won't need the several intermediate
  49. steps used for Fido, so your overall performance may be better. The required
  50. disk space for QWK nets is dramatically less.
  51.  
  52.  
  53. :::: INSTALLATION, SETUP AND OPERATION ::::
  54.  
  55. First, if you're not already in a QWK net, find a hub and get the sysop to
  56. give you a "net-status" or "net-sysop" account. Your hub sysop can help
  57. explain this to you. Then, you may want to download your first net-status
  58. packet before proceeding. You log in like a regular user, but using your
  59. net-sysop account, and download a packet from the mail door, just as you
  60. would a regular QWK packet. (Later, you'll upload a .REP the same way.)
  61.  
  62. If you're already using Valence as a QWK door on your system, all you need
  63. to do is upgrade to version 1.3 by copying the files over in the usual way,
  64. then add one small config file. If you're not already using Valence, I
  65. recommend you just run INSTALL, then edit your network configuration
  66. file(s). However, you can use Valence to import and export with QWK nets
  67. without installing it as a QWK door on your board; just edit the .CFG file
  68. manually, and please read all the documentation before you use it.
  69.  
  70. QWKNET.CFG is an example config file. When you join a QWK net, your hub
  71. sysop might give you an example config file for Tomcat, Trinet, or some
  72. other QWK-net program; you must adapt this to the format shown in
  73. QWKNET.CFG. Usually it's pretty straightforward. You can also read the
  74. CONTROL.DAT file from your net-status packet to see which numbers correspond
  75. to which areas.
  76.  
  77. You must manually create the subboards you name in your network .CFG file,
  78. if they don't exist already. Be sure to set the option "Auto Purge Old
  79. Messages" to "Yes". You might also want to adjust the maximum number of
  80. messages. Other than that, the defaults are fine. Do NOT fill in the
  81. echomail fields, and do NOT mix QWK and Fido messages on the same subboard.
  82.  
  83. Now, import your first .QWK packet. To do this, run either from the home
  84. (CONFIG.SL2) directory of a node with no one logged in, or with the SLBBS
  85. environment variable pointing to such a node. Use the "I" parameter for
  86. Import (you can also spell out "Import" if you like), followed by the BBSID
  87. of your hub. E.G.:
  88.  
  89.  cd\sl
  90.  valence\valence i hubsys
  91.  
  92. Watch and enjoy. :-) Depending on your system, it may take a while. (If you
  93. can, use a disk cache, and enable both read and write caching, at least for
  94. the duration of the import. It makes a dramatic difference.) The imported
  95. .QWK packet will be deleted if successfully imported.
  96.  
  97. *** Normal operation ***
  98.  
  99. After your first import, you'll want to automate things. Always EXPORT
  100. FIRST. The exporting process is identical to importing, but uses "E" (or
  101. "Export") instead of "I".
  102.  
  103. You'll probably want to create a batch file which runs as an event,
  104. something like this:
  105.  
  106.  cd\sl
  107.  valence\valence e hubsys
  108.  {launch terminal program with script to call hub,}
  109.  {upload .REP and download .QWK}
  110.  valence\valence i hubsys
  111.  
  112. That's really all there is to the setup. However, that middle part can be
  113. tricky. I can't lay out the setup for you, but your hub sysop should be able
  114. to help. Most QWK network hubs will have scripts for the more popular
  115. terminal programs, plus dedicated QWK-network term programs like Robocomm
  116. (? I think). Some people never do automate their sessions, and call manually
  117. for their network transfers. I can't recommend that, but it does work.
  118.  
  119. *** Errorlevels ***
  120.  
  121. Import and Export functions return an errorlevel of 0 if everything went
  122. normally; other errorlevels are as follows:
  123.  
  124.  81: COMPRESS.CFG not found
  125.  82: Unable to open BBS system files
  126.  83: CONFIG.SL2 not found
  127.  85: Error from DOS operation
  128.  86: Error changing directories
  129.  87: .EXE or .COM not found
  130.  88: Error in .REP packet
  131.  92: Error in archiving
  132.  94: SUBBOARD.SL2 not found
  133.  97: Unable to open VALENCE.USR
  134.  98: VALENCE.USR: wrong version
  135.  99: No room for packet in directory
  136. 100: No new messages
  137. 101: Disk I/O error
  138. 104: Network .CFG file not found
  139. 105: QWK packet not found
  140. 106: Error in unarcing
  141. 107: Not a net-status packet!
  142.  
  143. You might check some of these in your import/export batch file(s). Notice
  144. that error 100 is not really an error condition; unless your users do a lot
  145. of posting, you can expect to get this one frequently when exporting. Error
  146. 107 is what you get if you try to import a regular .QWK packet. If you get
  147. this error, and you KNOW you have a net-status packet, let me know (and send
  148. me the packet).
  149.  
  150.  
  151. :::: WHERE TO CONNECT ::::
  152.  
  153. The first board ever to be in QWK networks was PCBoard. Qmail, the original
  154. QWK door, also became the original QWK networker. It was followed by Tomcat
  155. for Wildcat BBSes. QWK networking has since spread to other types of boards,
  156. but it's still most widespread among Wildcat and PCBoard systems - in fact,
  157. my experience suggests QWK nets are more common than Fido nets on these two
  158. boards. You may have noticed that many of them don't run front-end mailers,
  159. but still carry networked conferences.
  160.  
  161. If you're interested in QWK networking, but don't know already know where
  162. you can find a hub, try large local PCBoard and Wildcat systems first. Even
  163. if they're not in a QWK net, almost all of them have the necessary software
  164. already in place. You might prompt them to join. :-)
  165.  
  166.  
  167. :::: SOME INNER DETAILS ::::
  168.  
  169. Most QWK-net import/export programs are separate from the QWK doors; I'm not
  170. sure why. I found I could add import and export functions to Valence with a
  171. minimum of new code, using much of the existing .QWK code to create network
  172. .REPs, and the .REP code to read network .QWKs. But of course, the
  173. differences are considerable, and I had a hell of a time finding out the
  174. picky little details I needed to implement this thing. For some reason, the
  175. QWK networking specs aren't nearly as well-publicized as the general QWK
  176. specs.
  177.  
  178. When imported, messages are marked with an [I] flag. Network taglines are
  179. added to those that don't have them. The high-message pointers are updated,
  180. as after a download or export. (This is why it is critical that you export
  181. FIRST.) And instead of a message-by-message display, there's a subboard-by-
  182. subboard display very similar to the one you see when downloading. Other
  183. than that, importing works the same as uploading a .REP. High-bit filtering
  184. and threading are always off.
  185.  
  186. When exported, messages are marked with an [E] flag, if they don't already
  187. have an [I] or [E] on them. Messages without an [I] have the network tagline
  188. added. (Normally, the only messages in a QWK-net sub that will have [I]'s on
  189. them are the ones downloaded from the hub, which will never be exported; but
  190. when hubbing capability is added, messages uploaded from nodes will also be
  191. marked with [I]'s. This is how Valence knows if the message already has a
  192. network tagline or not.) The high-message pointers are updated immediately,
  193. rather than after a successful download. Color codes are always stripped,
  194. metacharacters are untranslated, and no "extra" header information is
  195. included in a message. Otherwise, exporting is much like downloading.
  196.  
  197. The status line is not displayed in either network mode, the protocols are
  198. ignored, and no user's record is read. Member records are created in all
  199. network subboards with the hub's BBSID as the name.
  200.  
  201.  
  202. :::: FOR THE FUTURE ::::
  203.  
  204. In the next release of Valence, I intend to offer hubbing ability. Before I
  205. can do this, I'll have to resolve some problems with echoed private
  206. messages. I also hope to increase the speed of importing.
  207.  
  208. *** Known flaws in the present version ***
  209.  
  210. * Importing is too slow. To improve it, I will have to write my own routines
  211.   to replace the SLTPU's message post. Any tips on this - how to calculate a
  212.   UID, how the compression scheme works, etc. - would be appreciated.
  213.  
  214. * Private echoed messages are merely posted to MAIL if they're to an
  215.   existing user and discarded otherwise. It's impossible to send a private
  216.   message through the network.
  217.  
  218. * Any existing network .REP file is killed on export. There should at least
  219.   be the option to append newly exported messages to an existing .REP. This
  220.   is the default behavior on the other QWK-net programs I've looked at. I
  221.   coded this, but could not get it to work due to bizarre memory allocation
  222.   problems. I hope to fix it for the next version, but for now I haven't the
  223.   patience to keep beating my head against the wall.
  224.  
  225. * There should probably be an option not to kill the .QWK packet after
  226.   import, too. And a few other options I can think of as well. <sigh>
  227.  
  228. * Overall number of messages imported and exported can be logged, but not
  229.   area-by-area.
  230.  
  231.  
  232. :::: ACKNOWLEDGMENTS ::::
  233.  
  234. Thanks to Jessica Mack aka Razor Girl for providing me with a net-sysop
  235. account. This allowed me, finally, to figure out and implement the
  236. mysterious QWK network system. Thanks also to all those who operate free and
  237. open boards.
  238.  
  239. Unthanks to the many I asked for help on this who didn't give it. Also,
  240. special unthanks to all the bums who sent me netmail and echomail saying
  241. "Hey, I'm gonna send ya a donation check on Friday!" and never did so.
  242.