home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / comm / zedzap05.lha / xprzmodem.doc < prev    next >
Text File  |  1991-02-12  |  31KB  |  569 lines

  1.  
  2.                     Documentation for XPRZModem.library
  3.               Version 2.10, 12 February 1991, by Rick Huebner
  4.  
  5.  
  6.  
  7. 1.  Introduction (or "What is this thing, anyway?")
  8. ---------------------------------------------------
  9.  
  10.      XPRZModem.library is an Amiga shared library (with full Lattice C
  11. source code) which provides ZModem file transfer capability to any
  12. XPR-compatible communications program.  The XPR external protocol standard
  13. describes an interface method which allows various file transfer protocols
  14. to be implemented as Amiga shared libraries which may then be used
  15. interchangeably in any compatible communications program.  This takes a
  16. heavy load off of the comm program author, who no longer has to support
  17. scads of different file transfer protocols (many of which are quite tricky
  18. to code) in their program in order to make it widely useful and popular.
  19. The comm program is also smaller and more efficient as a result, since all
  20. those obscure protocols (you know, the ones *you* don't need) are no longer
  21. taking up space.  The XPR standard also helps users, who can mix and match
  22. their favorite file transfer protocols (and implementations thereof) with
  23. their favorite comm programs.  And when new protocols are invented, the
  24. user simply plugs in a new library, and voila!, it's ready to use.
  25. Hopefully, making protocols easy to support will allow more and better comm
  26. programs to be written, as authors can concentrate on their programs
  27. instead of constantly re-inventing the wheel.
  28.  
  29.      Of course, for all of this wonderful stuff to happen, there needs to
  30. be a good selection of these XPR protocol libraries available to the
  31. public.  It's the classic chicken-and-egg problem; comm program authors
  32. won't be motivated to support the XPR standard unless there are a goodly
  33. number of protocols available for it.  And other programmers won't be
  34. motivated to write XPR protocol libraries until there are a goodly number
  35. of comm programs which can use them.  In an effort to do my bit [ B^) ] for
  36. the Amiga community, which has given me so many neat toys to play with over
  37. the past few years, I decided to try and help get the ball rolling.
  38.  
  39.      Hopefully, the early availability of a ZModem library will help
  40. stimulate interest in the XPR standard, resulting in better Amiga telecomms
  41. for all of us.  And by making my source code PD, I hope to help others
  42. interested in writing XPR protocol libraries by giving them some serious
  43. example code.  Also, having ZModem library code readily available to John
  44. Q. Hacker should help ensure a steady stream of new lemon-fresh enhanced
  45. ZModem libraries (with enzymes) for all of us to use in the future.
  46.  
  47.      Of course, no discussion of the XPR standard would be complete without
  48. giving proper credit to the author, Willy Langeveld of the Stanford Linear
  49. Accelerator Center.  Many thanks are due him for this effort.  If you have
  50. any further questions about the XPR standard, be sure and download the spec;
  51. it should be available on BIX (since he's a sysop there), or on most other
  52. major systems.  And I'll try to keep the current version available on my
  53. BBS, as well.
  54.  
  55.      All files in this archive which are not copyrighted are hereby
  56. released to the public domain (which they were anyway, by way of not being
  57. copyrighted, but I want to make sure YOU realize that).  Do as you like
  58. with them.  Please make lots of copies and distribute them all over the
  59. place, and make lots of derivative works, and everything!  Heck, you can
  60. even publicly perform and/or display this code if you can figure out how...
  61.  
  62.  
  63.  
  64. 2.  Installation (OK, enough chatter; let's get to work)
  65. --------------------------------------------------------
  66.  
  67.      Couldn't be easier.  Just copy the xprzmodem.library file into your
  68. LIBS: directory.  All XPR-compatible comm programs should provide a way for
  69. you to select which XPR protocol you wish to use, either by giving you a
  70. file requester showing LIBS:xpr*.library, or by automatically detecting
  71. these libraries and adding them into their menus.
  72.  
  73. WARNING:  Versions of VLT prior to revision 4.107 had a bug in the
  74. xpr_sflush() routine which caused random Guru 3 crashes on some systems.  If
  75. you're using a version of VLT older than 4.107, it would be a good idea to
  76. upgrade to the latest rev.  Besides, there's a bunch of new features you're
  77. missing, anyway...
  78.  
  79. ANOTHER WARNING:  Versions of VLT prior to 5.034 had a bug in the
  80. xpr_sread() function which caused them to (at least sometimes) fail to
  81. return any bytes received so far when an xpr_sread() call timed out.  This
  82. version of XPRZModem.library requires VLT version 5.034 or later.  (Yes,
  83. Willy, it really was broken B-))
  84.  
  85.  
  86.  
  87. 3.  Options
  88. -----------
  89.  
  90.      The XPR standard lays out two ways for the comm program user to
  91. specify options for the XPR protocol.  The more primitive option is for the
  92. comm program to provide a method of passing an option string to the XPR
  93. library before transferring files.  The precise format and usage of this
  94. option string is left up to the XPR protocol author; the comm program just
  95. sends it verbatim.  If an environment variable is found with the same name
  96. as the XPR protocol (i.e. there's a file in the ENV: directory called
  97. "xprzmodem"), the comm program is supposed to use this string (contents of
  98. file) to initialize the protocol options.  Also, a menu option or some such
  99. should normally be provided which will allow the user to be prompted for
  100. the option string interactively.
  101.  
  102.      Version 2.0 of the XPR standard created a new, more sophisticated way
  103. for the comm program user to specify XPR options.  If the comm program
  104. supports it, the XPR library can give the comm program a list of option
  105. prompts, and the comm program can then let the user interactively set the
  106. various options individually, possibly even using nice gadgets and stuff.
  107.  
  108.      In any case, no matter how your particular comm program feels like
  109. handling it, these are the options supported by this implementation of
  110. ZModem:
  111.  
  112.           T{Y|N|?|C}   Text translation mode:
  113.              TY = Text Yes; if receiving, translate CR/LF pairs or solo
  114.                   CR chars to normal Amiga LF chars.  Ignore data past ^Z.
  115.                   If sending, suggests to receiver that they should receive
  116.                   this file in text mode.
  117.              TN = Text No; receive file verbatim, without changes.  If
  118.                   sending, suggest to receiver that they receive this
  119.                   file verbatim, without translations.
  120.              T? = Text status unknown; if receiving, use sender's
  121.                   suggestion as to whether to do EOL translations or not.
  122.                   If sending, tell receiver to use default mode, 'cause we
  123.                   don't know either.
  124.              TC = Text mode set by Comm program; the library asks the comm
  125.                   program whether or not to use Text mode for each file.
  126.                   If the comm program doesn't support the necessary
  127.                   xpr_finfo() call, or if the call fails, this option acts
  128.                   like T?.  From the user's point of view, what this option
  129.                   normally does is set the Text mode to match the comm
  130.                   program's built-in text/binary/end-of-line/translation
  131.                   mode, if any.
  132.  
  133.           O{Y|N|R|S}  Overwrite mode:
  134.              OY = Overwrite Yes; if about to receive file with same name as
  135.                   one which already exists, delete the old file and receive
  136.                   the new file in its place.
  137.              ON = Overwrite No; if about to receive file with same name as
  138.                   one which already exists, append ".dup" onto the name of
  139.                   the new file to keep them separate.
  140.              OR = Overwrite Resume; if about to receive file with same name
  141.                   as one which already exists, resume receiving file data
  142.                   from the current end of the existing file.
  143.              OS = Overwrite Skip; if (etc.), tell sender never mind, skip
  144.                   this file, we don't want it.  Batch transfers will move
  145.                   on to the next file in the set, if any.
  146.  
  147.           Bnnn   Buffer size:
  148.              XPRZModem.library adds a layer of file I/O buffering in
  149.              addition to whatever the comm program may or may not provide.
  150.              This option sets the size of XPRZModem's file I/O buffer in
  151.              kilobytes.  The minimum value is 1 KB, for those using RAM
  152.              drives or fast hard drives, or those whose comm programs
  153.              already provide sufficient buffering.  The maximum value is
  154.              as much contiguous RAM as you have available in your Amiga.
  155.              If you specify more than is actually available, XPRZModem will
  156.              keep decrementing the buffer size requested by 1 KB until the
  157.              memory allocation works.  That way, if your RAM is too
  158.              fragmented to use the amount you request, XPRZModem simply
  159.              uses the largest block available.  Buffering is especially
  160.              helpful for floppy drive users; it keeps your drive from
  161.              continuously gronking and slowing things down all through the
  162.              transfer.  NOTE: Versions of VLT prior to 5.034 couldn't handle
  163.              buffer sizes >= 32 KB.  If you wanted to use larger buffers
  164.              before and couldn't, try again now.
  165.  
  166.           Fnnn   Frame size:
  167.              Although normally avoided, ZModem has the ability to require
  168.              an ACK to be sent from the receiver to the sender every X-many
  169.              data bytes.  Normally you don't want to use this feature,
  170.              because not waiting for ACKs is part of how ZModem works so
  171.              fast.  However, this feature can be very useful in conjunction
  172.              with file I/O buffering on slow devices (namely those floppy
  173.              drives).  If you set up a large I/O buffer to avoid gronking
  174.              your floppy so often, you'll find that when the buffer finally
  175.              *does* get around to being flushed that it can take a looonng
  176.              time; so long, in fact, that the delay can cause timeouts and
  177.              errors.  But if you set your ZModem to require the sender to
  178.              wait for an ACK every buffer's-worth of data, the sender will
  179.              politely wait for you to flush your buffer to the slow floppy
  180.              and send it an ACK saying it's OK to continue now.  This value
  181.              should be set to 0 to disable ACKs (normal mode), or set it to
  182.              the actual number of data bytes allowed between ACKs.  For
  183.              example, if you set B64 because of your floppy, you should
  184.              also set F65536.
  185.  
  186.           Ennn   Error count:
  187.              This allows you to set the number of sequential errors which
  188.              will be required to convince ZModem to abort the transfer.  The
  189.              normal value is 10, meaning that 10 errors must happen in a row
  190.              with no valid data being transferred in order to cause an abort.
  191.              This setting is provided for those using XPRZModem with a BBS,
  192.              who may wish to use a relaxed setting, or those with really
  193.              lousy phone lines who are desparate and patient enough to want
  194.              the transfer to continue in spite of horrible performance.
  195.  
  196.           A{Y|N}   Auto-activate mode:
  197.              AY = Auto-activate Yes; if the comm program supports the
  198.                   ability, the library will automatically go into receive
  199.                   mode when the start of a ZModem download is detected.
  200.              AN = Auto-activate No; don't try to automatically start
  201.                   downloading, make the user activate it.
  202.  
  203.           D{Y|N}   Delete after sending:
  204.              DY = Delete Yes; delete each file after it has been
  205.                   sucessfully sent.
  206.              DN = Delete No; don't delete files after sending them.
  207.  
  208.           K{Y|N}   Keep partial files:
  209.              KY = Keep Yes; keep the fragment of a file received so far
  210.                   if file reception is aborted.  This allows you to use the
  211.                   Overwrite Resume option above to pick up where you left
  212.                   off on your next attempt.
  213.              KN = Keep No; delete any partially-received file after an
  214.                   aborted transfer.
  215.  
  216.           S{Y|N}   Send full directory path:
  217.              SY = Send path Yes; send full filenames including directory
  218.                   path to receiver.
  219.              SN = Send path No; send only simple filenames, not including
  220.                   directory path.
  221.  
  222.           R{Y|N}   Receive full directory path:
  223.              RY = Receive path Yes; use full filename exactly as received,
  224.                   instead of using the P option directory path.
  225.              RN = Receive path No; ignore received directory path (if any),
  226.                   use P option directory path instead.
  227.  
  228.           P{dir}   Path to use for received files:
  229.              Px = Store all received files in directory "x" if option RN
  230.                   set.  Ignored if option RY set.  "x" can be any valid
  231.                   existing directory, with or without trailing "/"
  232.                   (e.g. "Pdf0:", "PComm:hold", etc.).
  233.  
  234.      If setting the options via the option string method (either ENV: file
  235. or primitive comm program), note that the setting for each option must
  236. immediately follow the option character with no intervening characters
  237. ("TY", not "T Y" or "T=Y").  When setting multiple options at once,
  238. separate the options from each other with commas and/or spaces; for
  239. example, "TN,OR,F0".  You don't have to specify all options every time; the
  240. options you specify will be merged into the current option settings,
  241. replacing their old values.  Upper/lower case is not significant.  The
  242. default option settings if you don't change anything are "TC, ON, B16, F0,
  243. E10, AY, DN, KY, SN, RN, P".
  244.  
  245.      If the comm program supports the xpr_options() call added in version
  246. 2.0 of the XPR spec, you should be prompted for each option with a nice
  247. prompt message such as "Text mode (Y,N,?,C):" and possibly be able to use
  248. Intuition string and/or button gadgets instead of being stuck with the
  249. semi-cryptic option string format described above.
  250.  
  251.  
  252.  
  253. 4.  Serial port settings
  254. ------------------------
  255.  
  256.      ZModem (at least this implementation of it) requires that your serial
  257. port be set to 8 data bits, no parity, 1 stop bit.  This allows ZModem to
  258. send full 8-bit binary data bytes without having them munged on the way
  259. through the modem.  If your comm program supports the xpr_setserial()
  260. function, XPRZModem will use it to set your serial port to 8N1 before doing
  261. a transfer, and will set your port back the way it was again after it's
  262. done.  If your comm program doesn't support xpr_setserial(), you'll need to
  263. make sure it's in 8N1 mode yourself.
  264.  
  265.      ZModem works well in all serial port handshaking modes; none,
  266. XON/XOFF, or 7-wire/RTS/CTS.  Since any or all of those handshaking modes
  267. may be appropriate at different times, with different modems or remote
  268. systems, XPRZModem lets you set the handshaking mode and doesn't mess with
  269. it.
  270.  
  271.  
  272.  
  273. 5.  Receiving files
  274. -------------------
  275.  
  276.      Once you get the ZModem options and your serial port configuration set
  277. up properly, you're ready to actually use this thing (gasp!).  Receiving
  278. files via ZModem is quite simple.  First, get the file sender going by
  279. using whatever command it wants.  ZModem is a batch file transfer protocol,
  280. meaning that it's capable of transferring several files in a single
  281. exchange, so the remote system may allow you to specify multiple files to
  282. be sent to you at one time.  It may also allow you to use wildcard
  283. characters in the filename(s); this is all system dependant.
  284.  
  285.      This may be all you have to do.  If you specified option AY
  286. (auto-activate on), and your comm program supports it, XPRZModem should
  287. automatically activate at this point and start receiving your files.  If
  288. you specified AN, or your comm program doesn't support auto-activation, you
  289. should now use whatever option your comm program provides to activate file
  290. reception; this will usually be a menu option or button gadget.  Either
  291. way, once XPRZModem starts receiving files, it should automatically receive
  292. all of the files you specified into the proper directory as indicated by
  293. the R and P options.
  294.  
  295.      Make sure that you have set the ZModem options properly before
  296. starting the transfer; especially, make sure you only use TY if you know
  297. that all of the files being transferred in this batch are printable ASCII
  298. text files.  If you use TY on normal binary files like .ARCs or .ZOOs,
  299. they'll be mangled beyond use.
  300.  
  301.  
  302.  
  303. 6.  Sending files
  304. -----------------
  305.  
  306.      Sending files using ZModem is fairly straightforward.  First, activate
  307. the file receiver with whatever command the remote system requires.  You
  308. may or may not need to specify a filename or directory to the remote
  309. system; this depends on their implementation of ZModem.  Once the remote
  310. system is ready to receive files, activate your comm program's ZModem send
  311. function.  Your comm program will prompt you for which file(s) to send.
  312. Although ZModem is a batch protocol, your comm program may or may not allow
  313. you to specify multiple file names to be sent; also, wildcards may or may
  314. not be supported.  These decisions are up to the comm program author;
  315. ZModem will handle multiple files and wildcards if the comm program allows
  316. them.  Once you've specified the file name(s), the file(s) will be sent to
  317. the remote system.  Note that the T option serves only as a suggestion to
  318. the receiving system when sending files; the receiver makes the final
  319. decision as to whether to take your advice or to force the files to be
  320. received in text or binary mode.
  321.  
  322.      If errors occur while sending the file(s), you'll probably notice a
  323. small enhancement I made to the normal ZModem error recovery procedures.
  324. Normally, file transfer protocols have to compromise between efficient data
  325. transmission on good, clean phone lines and quick error recovery on bad,
  326. noisy phone lines.  If you pick a large packet size, you get high
  327. throughput on clean lines due to low packet overhead, but you have slow
  328. recovery times and large amounts of retransmitted data on noisy lines.  If
  329. you've used YModem on noisy lines you've seen this problem.  But, if you
  330. use small packets to reduce retransmitted data on noisy lines, you increase
  331. the amount of time the protocol spends sending packet overhead, and your
  332. throughput suffers.  The solution is to vary the block size according to
  333. the experienced error rate during the transfer.  That way you aren't stuck
  334. with a rigid packet length which will sometimes be the wrong size no matter
  335. what.  I came up with this idea back when I first wrote the ZModem code for
  336. Opus, and cleared it for future compatibility with ZModem's designer, Chuck
  337. Forsberg, back then.  Since then the basic concept has been extensively
  338. tested in the Opus BBS system, and has proven quite effective; it has also
  339. been incorporated into various other ZModem implementations over time.  The
  340. actual algorithm for deciding what size packets to use when is pretty much
  341. up to the protocol author; XPRZModem uses a modified version of the Opus
  342. algorithm which prevents locking the packet size at a small value when a
  343. large one-time burst of errors occurs.
  344.  
  345.  
  346.  
  347. 7.  Notes for comm program authors
  348. ----------------------------------
  349.  
  350.      That's pretty much everything you need to know in order to use
  351. XPRZModem properly.  Here are some notes for the "other" XPR standard
  352. users, namely the comm program authors:
  353.  
  354.      Certain XPR callback functions *must* be implemented by the comm
  355. program author in order for XPRZModem to be used.  If any of these
  356. functions are not supported by your comm program, XPRZModem will display an
  357. error message and abort when invoked.  These required functions are:
  358.  
  359.           xpr_fopen(), xpr_fclose(), xpr_fread(), xpr_fwrite(),
  360.           xpr_fseek(), xpr_sread(), xpr_swrite(), and xpr_update()
  361.  
  362.      The xpr_update() function provides many data fields for your comm
  363. program to potentially display to the user.  These are the XPR_UPDATE
  364. struct elements which XPRZModem will keep updated during transfers:
  365.  
  366.           xpru_protocol, xpru_filename, xpru_filesize, xpru_msg,
  367.           xpru_errormsg, xpru_blocks, xpru_blocksize, xpru_bytes,
  368.           xpru_errors, xpru_timeouts, xpru_blockcheck, xpru_expecttime,
  369.           xpru_elapsedtime, and xpru_datarate
  370.  
  371.      As you can see, XPRZModem tries to provide as many status fields as
  372. possible.  Although all of them are useful, the ones which are most
  373. important to ZModem users are filename, filesize, msg and/or errormsg, and
  374. bytes.  Please try to provide at least these fields in your status display,
  375. plus as many of the rest as you can manage.
  376.  
  377.      Although only the XPR callback functions listed above are crucial for
  378. XPRZModem, almost all of them are used if they are provided.  Although
  379. XPRZModem will function without any of the other routines, its performance
  380. or capabilities may be degraded somewhat.  Specifically, this is what you
  381. give up if you choose not to supply any of these other XPR callback
  382. functions:
  383.  
  384.           xpr_sflush(): Used when performing error recovery and resync
  385.                when sending files.  If not provided, extra timeout errors
  386.                and delayed error recovery will be likely.  The files will
  387.                still be transferred properly, but errors will degrade
  388.                overall throughput more than usual.
  389.  
  390.           xpr_chkabort(): Called between sending or receiving packets.
  391.                If not provided, there's no way for your comm program user
  392.                to abort a transfer in progress except by trying to somehow
  393.                force it to decide to give up and abort on its own, such as
  394.                by turning off the modem and hoping the protocol will abort
  395.                after enough timeouts (it will, eventually...).
  396.  
  397.            xpr_gets(): Called to prompt the user interactively for options
  398.                when your comm program invokes XProtocolSetup() with a null
  399.                xpr_filename field (if xpr_options() isn't available
  400.                instead).  If not provided, you'll have to prompt
  401.                the user for the options string yourself, and pass this
  402.                string in xpr_filename when invoking XProtocolSetup().
  403.  
  404.            xpr_setserial(): Called to obtain the current serial port
  405.                settings, and to change the serial port to 8N1 if it's not
  406.                already set that way.  If not provided, XPRZModem will
  407.                assume all transfers are being done at 2400 bps, which
  408.                won't hurt anything, and your users will have to make sure
  409.                that the serial port is set to 8N1 themselves.
  410.  
  411.            xpr_ffirst() and xpr_fnext(): If either of these routines are
  412.                missing, XPRZModem will lose the ability to send multiple
  413.                files in a batch.  The xpr_filename pointer passed to
  414.                XProtocolSend() will be assumed to point to the actual full
  415.                filename of the single file to be sent in this batch.  If
  416.                both of these routines are provided, XPRZModem will rely
  417.                upon them completely to obtain the names of the files to
  418.                send, and the xpr_filename pointer will not be used for any
  419.                purpose by XPRZModem except to be passed to ffirst/fnext.
  420.                This gives your comm program a way to send not just a single
  421.                filename template's worth of files in a batch, but a list of
  422.                different filenames.  If, for example, you set xpr_filename
  423.                to point to the first node of a linked list of filenames
  424.                and/or templates to be sent, rather than just having it
  425.                point to a string, you can have your ffirst and fnext
  426.                routines traverse this linked list in order to determine the
  427.                next file to be sent.  Or you could have xpr_filename point
  428.                to a buffer containing a list of filenames separated by
  429.                commas, and your ffirst/fnext routines could return each
  430.                filename in this list in turn.  The key here is that if you
  431.                provide these two routines, you're in complete control over
  432.                the series of names fed to XProtocolSend.  If you omit these
  433.                routines, XPRZModem is stuck with single-file mode.  Once
  434.                again, if these two routines are provided, XPRZModem will
  435.                *always* call them; it makes no attempt to use the
  436.                xpr_filename pointer for anything itself.  This is not
  437.                explicitly spelled out in the XPR standard, but it seems the
  438.                only reasonable way to handle batch protocols to me.
  439.                Hopefully other XPR library authors will follow this
  440.                precedent as well, so that comm program authors will be able
  441.                to count on multiple-filename batch sessions being handled
  442.                properly.
  443.  
  444.            xpr_finfo(): Used to determine the filesize of files being sent,
  445.                in order to tell the receiving system how big they are.
  446.                Also used to determine the size of a file which already
  447.                exists when in Overwrite Resume mode; XPRZModem must be able
  448.                to get the size of the current portion of the file in order
  449.                to be able to tell the sender where to resume sending from.
  450.                If this routine isn't provided, Overwrite Resume mode is
  451.                not allowed.  This routine is also used to check if Text
  452.                mode should be set to Y or N for each file when option TC
  453.                is set.
  454.                
  455.            xpr_options(): If you don't supply this, users will be stuck
  456.                with setting the library options via the semi-cryptic text
  457.                string method (ENV: and/or xpr_gets()).  This routine and
  458.                xpr_update() have a lot to do with the look and feel of your
  459.                program when using XPR libraries; any skimping on these two
  460.                routines will be painfully obvious to the user.  Conversely,
  461.                doing a nice job on these two routines will really make your
  462.                program shine.
  463.  
  464.            xpr_unlink(): Required by the DY and KN options, so if you don't
  465.                supply it, those options are not allowed.
  466.  
  467.  
  468.  
  469. 8.  The future
  470. --------------
  471.  
  472.      I don't want or expect this to be the last or only XPR ZModem library
  473. available.  There are a lot of less-commonly-used ZModem features which
  474. have popped up over the past few years, and many people might like to see
  475. some of them made available.  Such as 32-bit CRC (although I consider
  476. CRC-16 perfectly adequate for the max 1K packets sent by ZModem), full
  477. control-character escaping, or maybe 8th bit escaping to allow use of 7-bit
  478. serial channels.  I didn't want to add a bunch of rarely-used bells and
  479. whistles to this version of the library, because I want it to be able to
  480. serve as comprehensible example code.  I just want to provide a good solid
  481. ZModem which reliably handles the majority of people's needs.  Hopefully,
  482. this will serve as a foundation for future enhanced versions, while
  483. providing a safe fallback for people to come back to if that fancy new
  484. enhanced version (with neo-maxi zoomed weebies) turns out to need some more
  485. debugging.
  486.    
  487.      Bug reports, questions, or comments may be sent to me at:
  488.  
  489.           BIX: rahuebner
  490.           Compu$erve: 73105,1022
  491.  
  492.      Or, if you think it's important, and you want an answer in less than a
  493. week or two, call my BBS:
  494.  
  495.           The Wind Dragon Inn
  496.           1-402-291-8053, 300-9600+ bps, HST/V.32/V.42
  497.        or 1-402-291-3636, 300-2400 bps
  498.  
  499.      I check the messages on my BBS fairly often, so that's where to
  500. get ahold of me quick.  I'll also try and stock the latest XPR standard
  501. spec and XPR libraries there.
  502.  
  503.  
  504.  
  505. 9.  The past (revision history)
  506. -------------------------------
  507. 1.0, 29 July 89:  Original release.
  508.  
  509.  
  510.  
  511. 1.1, 3 August 89:  Fixed zsdata() to send file data packet in one swrite()
  512. call instead of calling zsendline for every byte, to prevent hammering the
  513. serial.device with single-byte write requests during uploads, and to speed
  514. up effective data transmission rates.
  515.  
  516.  
  517.  
  518. 2.0, 28 October 89:  Converted from Manx to Lattice C 5.04.  Created
  519. prototypes and made other tweaks as required.  Designed new library skeleton
  520. for Lattice code, replacing the old Manx library skeleton.  Added new
  521. options TC, A, D, K, S, R, and P.  Added support for xpr_options() callback
  522. routine, and generally brought things up to par with XPR Spec 2.0.
  523.  
  524.  
  525.  
  526. 2.10, 12 February 91: Fixed the following generally minor problems:
  527.  
  528.   No longer munges A6 register (this was potentially serious), and added
  529. callback glue to ensure comm program can't munge OUR registers either.
  530. Decided that the protective glue was much safer than the more elegant direct
  531. invocation used in version 2.0.
  532.  
  533.   Slightly less transmission overhead (concatenates all output into single
  534. swrites, builds output packets a bit faster).
  535.  
  536.   Considerably less receive overhead; does a lot more waiting and a lot
  537. fewer sreads, especially at high speed.  WARNING: this change doesn't work
  538. with VLT version 4.846 or earlier (yes, Willy; it really was broken B-)).
  539. This change may or may not actually do you any good, depending upon how
  540. your comm program implements the xpr_sread() function.
  541.  
  542.   Fixed problems getting synchronized with some systems on uploads.
  543.  
  544.   No longer closes files twice.
  545.  
  546.   Now uses fully-reentrant sprintf() from amiga.lib; no more nasty BSS.
  547.  
  548.   A couple of obscure error messages were > 50 bytes long, causing problems
  549. with some comm program's transfer status windows, e.g. the infamouse VLT
  550. "Incredible Shrinking Status Window."
  551.  
  552.   Stabilized spastic data rate by computing elapsed time more accurately.
  553.  
  554.   Fixed sprintf() error which caused invalid filelength to be sent on uploads.
  555.  
  556.   Aligned all data for optimal performance on 68030++ CPUs (now that I have
  557. my A3000... B-)).  Doesn't really make any noticeable difference, but it
  558. makes us 68030 owners feel better anyway.  I'm also including a version of
  559. the library compiled for the 68020+ CPU, on the same principle.
  560.  
  561.   Now uses .DUP2 instead of .DUP.DUP, etc.
  562.  
  563.   Added config option E for number of errors which cause an abort.
  564.  
  565.   Fixed bogus IO_Torture false alarm concerning timer.device.
  566.  
  567.   Tried to fix an elusive Enforcer hit on reading location 0, but I'm not
  568. sure I really got it, since I had trouble reproducing the problem.
  569.