📄 readme
字号:
This directory contains extensions to the core State Threads Librarythat were contributed by users. All files hereunder are not part of theState Threads Library itself. They are provided as-is, without warrantyor support, and under whatever license terms their authors provided. Tocontribute your own extensions, just mail them to the projectadministrators or to one of the project's mailing lists; seestate-threads.sourceforge.net. Please indicate the license terms underwhich the project may distribute your contribution.========================================================================stx_fileio----------Contributed by Jeff <jlb-st@houseofdistraction.com>, 4 Nov 2002.Provides non-blocking random access file reading capability forprograms using the State Threads library. There is one public function:ssize_t stx_file_read(st_netfd_t fd, off_t offset, void *buf, size_t nbytes, st_utime_t timeout);The implementation is not optimal in that the data is copied at least oncemore than should be necessary. Its usefulness is limited to cases whererandom access to a file is required and where starvation of other threadsis unacceptable.The particular application which motivated this implementation was a UDPfile transfer protocol. Because the OS does very little buffering of UDPtraffic it is important that UDP transmission threads are not starved forperiods of time which are long relative to the interval required tomaintain a steady send rate.Licensed under the same dual MPL/GPL as core State Threads.========================================================================stx_dns-------Documentation coming.========================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -