diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-21 13:56:51 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-21 13:56:51 (GMT) |
commit | ef824b7395c5d5dca17ebd8cfb0d8a89a7f250c0 (patch) | |
tree | 3ea848a08f7c1e1c5ab1bf18683297efdf703702 /doc | |
parent | 2930daf68ce7f2d1c8d17c5e4c7084d77d21aa1c (diff) | |
parent | 90852966272ccb62a125e43ba6cd5b2f3184ebe6 (diff) | |
download | tcl-ef824b7395c5d5dca17ebd8cfb0d8a89a7f250c0.zip tcl-ef824b7395c5d5dca17ebd8cfb0d8a89a7f250c0.tar.gz tcl-ef824b7395c5d5dca17ebd8cfb0d8a89a7f250c0.tar.bz2 |
merge trunk
Diffstat (limited to 'doc')
-rw-r--r-- | doc/fileevent.n | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/doc/fileevent.n b/doc/fileevent.n index df48d2a..e453748 100644 --- a/doc/fileevent.n +++ b/doc/fileevent.n @@ -80,13 +80,16 @@ A channel is considered to be writable if at least one byte of data can be written to the underlying file or device without blocking, or if an error condition is present on the underlying file or device. .PP -Event-driven I/O works best for channels that have been -placed into nonblocking mode with the \fBfconfigure\fR command. -In blocking mode, a \fBputs\fR command may block if you give it -more data than the underlying file or device can accept, and a -\fBgets\fR or \fBread\fR command will block if you attempt to read -more data than is ready; no events will be processed while the -commands block. +Event-driven I/O works best for channels that have been placed into +nonblocking mode with the \fBfconfigure\fR command. In blocking mode, +a \fBputs\fR command may block if you give it more data than the +underlying file or device can accept, and a \fBgets\fR or \fBread\fR +command will block if you attempt to read more data than is ready; a +readable underlying file or device may not even guarantee that a +blocking [read 1] will succeed (counter-examples being multi-byte +encodings, compression or encryption transforms ). In all such cases, +no events will be processed while the commands block. +.PP In nonblocking mode \fBputs\fR, \fBread\fR, and \fBgets\fR never block. See the documentation for the individual commands for information on how they handle blocking and nonblocking channels. |