CHANGES 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. The obligatory revision history...
  2. Changes from V4.0 to V4.0-1
  3. 1) Fix erroneous removal of local file on PUT when transfer fails. It
  4. was an attempt to remove the local file on retrieve failure but the
  5. the code was checking for the wrong value.
  6. 2) Link data netbuf to control netbuf in FtpOpenPort instead of
  7. routine that calls it.
  8. 3) Fix check of response type in FtpClose.
  9. 4) Add NULL check from nodename lookup.
  10. Changes from V3.1-1 to V4.0
  11. 1) License changed from GPL/LGPL to Artistic License 2.0.
  12. 2) Many bugs reported over the years have been addressed.
  13. 3) The reentrant versions of gethostbyname and getservbyname are used
  14. if available.
  15. 4) Internal buffers are larger which should allow for longer
  16. filenames.
  17. 5) The library will not output anything to stdout or stderr unless
  18. ftplib_debug is defined.
  19. 6) Some additional arguments are declared const.
  20. 7) The second argument to FtpSize is the address of an integer to
  21. receive the size of the remote file. The type of this argument has
  22. been changed from int to unsigned int. A new function, FtpSizeLong,
  23. returns the remote file's size as an unsigned long long.
  24. 8) The second argument to the callback function has been changed from
  25. an int to an unsigned long long. This value contains the number of
  26. bytes transferred so far.
  27. 9) The library version 1 interface compatability macros have been
  28. removed from the header file. If your application needs them, extract
  29. them from the old header file.
  30. 10) The usage information in qftp.c has been corrected.
  31. 11) qftp now accepts a '-s <cmd>' option to send <cmd> as a SITE
  32. command.
  33. 12) qftp progress reports now use floating point calculation so that
  34. large numbers don't cause overflows. If the remote server does not
  35. support the SIZE command, qftp will update every 32KB.
  36. 13) A new type-safe method is provided to establish a callback
  37. function. Put the details of when the function should be called into
  38. a FtpCallbackOptions structure and pass it to FtpSetCallback(). To
  39. remove a callback, call FtpClearCallback().
  40. 14) Updated html documentation.
  41. Changes from V3.1 to V3.1-1
  42. 1) Delay setting the control handle pointer in the data handle until
  43. after the transfer request has received a positive acknowledgement.
  44. This should resolve problems calling FtpClose() on the data handle
  45. when the transfer is rejected.
  46. 2) Fix error handling in FtpRead() and FtpWrite().
  47. 3) Return status of transfer from FtpXfer() instead of status of
  48. FtpClose().
  49. 4) Allow FtpClose() to be called on a control handle. This should be
  50. used instead of FtpQuit() in cases where a transfer was interrupted.
  51. FtpQuit() would attempt to send a 'QUIT' command and wait for a
  52. response but this would be out of sync after an interrupt.
  53. 5) The idle callback routine was not being set in the data handle if
  54. the user didn't set FTPLIB_IDLETIME. Fixed this so it would get set
  55. up if either this or FTPLIB_CALLBACKBYTES was set.
  56. 6) Open local files in binary mode when appropriate. This is
  57. necessary on some systems like NT and VMS.
  58. 7) Added a wildcard mode to qftp for wildcard retrieves. Argument
  59. after '-w' is treated as a remote wildcard file specification.
  60. Changes from 12/2/97 (V3) to .... (V3.1)
  61. 1) Added FtpPwd(), FtpSysType(), FtpCDUp(), FtpSize() and FtpModDate().
  62. 2) Fixed bug in FtpClose() - It wasn't waiting for the '226 Transfer
  63. Complete' since it didn't have access to the control connection. A
  64. pointer to it is now kept in the data connection.
  65. 3) Fixed bug in FtpClose() - The data connection wasn't being freed. This
  66. could have resulted in memory leaks.
  67. 4) Allow runtime selection of connection mode (PORT/PASV) with default set
  68. at compile time.
  69. 5) Added support for a user callback routine which can get called after a
  70. user specified number of bytes are transferred or after waiting for data
  71. on a socket for a user specified time period.
  72. 6) Add FtpOptions() which allows changing connection options. Options
  73. include connection mode, callback routine, and parameters regarding when
  74. the user's callback routine gets called.
  75. 7) Added checks to make sure strcpy()/sprintf()/etc. wouldn't write past
  76. end of buffers.
  77. 8) Modified build procedure to create a shared library.
  78. 9) Added install option to makefile which installs under /usr/local.
  79. 10) Modified qftp to use new interface.
  80. 11) Modified qftp to log progress every 10% of file or every time data
  81. is delayd by 1 second if -v setting is not zero.
  82. 12) Modified qftp to use fgets() instead of gets().
  83. ------------------------------------------------------------------------
  84. Changes from 3/15/97 to 12/2/97
  85. 1) FtpLastResponse() returns NULL if passed a NULL pointer.
  86. 2) Added 'const' keyword on appropriate function arguments.
  87. 3) First attempt to translate passed host string as an IP address in dot
  88. notation by passing it to inet_addr(). If this fails, pass the string
  89. to gethostbyname(). Apparently, some versions of gethostbyname() will
  90. parse the translation of a dot notation address for you. One user
  91. reports he knows of at least one that does not. In any case, it's the
  92. right thing to do.
  93. 4) Added protection from double inclusion to header file. Also added
  94. 'extern "C"' for C++.
  95. 5) Made sure qftp was passed two arguments before examining the second
  96. one.
  97. 6) Made sure all commands to the server were in upper case. I've been
  98. told that some servers require this.
  99. 7) Attempt to handle login to accounts with no passwords.
  100. 8) Added common data transfer routines so that ascii mode transfers would
  101. be handled properly in all cases. Also, exposed these routines for
  102. user programs to call. There's now FtpAccess() to open a remote file
  103. or directory, FtpRead() and FtpWrite() to pass data, and FtpClose() to
  104. terminate the data connection.
  105. 9) Added 'list' command to qftp to perform a terse directory (names
  106. only). This could be piped into another copy of qftp to retrieve the
  107. files.
  108. 10) ftplib.c and ftplib.h are now covered by the LGPL instead of the GPL.
  109. Feel free to send me a complementary copy of anything you develop
  110. commercially with my libraries. All other programs are still covered
  111. by the GPL.
  112. 11) Added ability to specify a different port number than the default by
  113. appending a colon and the desired port number to the remote host name
  114. (e.g., remote.host.name:500 would connect to port remote.host.name on
  115. port 500).
  116. ------------------------------------------------------------------------
  117. Changes from 8/31/96 version to 3/15/97 version
  118. 1) Added copyright information to sources.
  119. 2) Changed from 'port' to 'pasv' which I'm told will allow the routines
  120. to work from behind a firewall. It's also a lot simpler and cleaner
  121. than all that code to setup and accept a connect from the server.
  122. 3) Added delete (ftprm) support to qftp.c.
  123. 4) Modified qftp to allow use without a softlink by passing the ftp
  124. command as the first argument.
  125. 5) Added netbuf argument to all calls to eliminate static storage and
  126. allow multiple simultaneous connections.
  127. 6) Renamed routines from ftp*() to Ftp*() to avoid problems with existing
  128. programs. Added macros in libftp.h to support old interface. Renamed
  129. ftpOpen() to FtpConnect().