README 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. This directory contains extensions to the core State Threads Library
  2. that were contributed by users. All files hereunder are not part of the
  3. State Threads Library itself. They are provided as-is, without warranty
  4. or support, and under whatever license terms their authors provided. To
  5. contribute your own extensions, just mail them to the project
  6. administrators or to one of the project's mailing lists; see
  7. state-threads.sourceforge.net. Please indicate the license terms under
  8. which the project may distribute your contribution.
  9. ========================================================================
  10. stx_fileio
  11. ----------
  12. Contributed by Jeff <jlb-st@houseofdistraction.com>, 4 Nov 2002.
  13. Provides non-blocking random access file reading capability for
  14. programs using the State Threads library. There is one public function:
  15. ssize_t stx_file_read(st_netfd_t fd, off_t offset,
  16. void *buf, size_t nbytes, st_utime_t timeout);
  17. The implementation is not optimal in that the data is copied at least once
  18. more than should be necessary. Its usefulness is limited to cases where
  19. random access to a file is required and where starvation of other threads
  20. is unacceptable.
  21. The particular application which motivated this implementation was a UDP
  22. file transfer protocol. Because the OS does very little buffering of UDP
  23. traffic it is important that UDP transmission threads are not starved for
  24. periods of time which are long relative to the interval required to
  25. maintain a steady send rate.
  26. Licensed under the same dual MPL/GPL as core State Threads.
  27. ========================================================================
  28. stx_dns
  29. -------
  30. Documentation coming.
  31. ========================================================================