summaryrefslogtreecommitdiffstats
path: root/doc/socket.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-12-07 09:30:08 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-12-07 09:30:08 (GMT)
commitcf19c60188b714ac2d1ff99555e8a7a22aecda95 (patch)
treeff67e52cbd7647ef4611da0a12937663865e6d59 /doc/socket.n
parent5fac5e25b13ebc15e5a05c4d6969b87aae7ed7eb (diff)
downloadtcl-cf19c60188b714ac2d1ff99555e8a7a22aecda95.zip
tcl-cf19c60188b714ac2d1ff99555e8a7a22aecda95.tar.gz
tcl-cf19c60188b714ac2d1ff99555e8a7a22aecda95.tar.bz2
Improved documentation on topic of asynch sockets in response to queries on
the Tcler's Chat.
Diffstat (limited to 'doc/socket.n')
-rw-r--r--doc/socket.n13
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/socket.n b/doc/socket.n
index 201fff0..c2ba501 100644
--- a/doc/socket.n
+++ b/doc/socket.n
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: socket.n,v 1.12 2004/10/27 14:24:37 dkf Exp $
+'\" RCS: @(#) $Id: socket.n,v 1.13 2005/12/07 09:30:09 dkf Exp $
.so man.macros
.TH socket n 8.0 Tcl "Tcl Built-In Commands"
.BS
@@ -76,7 +76,16 @@ connection attempt succeeds or fails, if the socket is in blocking mode, the
operation will wait until the connection is completed or fails. If the
socket is in nonblocking mode and a \fBgets\fR or \fBflush\fR is done on
the socket before the connection attempt succeeds or fails, the operation
-returns immediately and \fBfblocked\fR on the socket returns 1.
+returns immediately and \fBfblocked\fR on the socket returns 1. Synchronous
+client sockets may be switched (after they have connected) to operating in
+asynchronous mode using:
+.RS
+.CS
+\fBfconfigure \fIchan \fB\-blocking 0\fR
+.CE
+.PP
+See the \fBfconfigure\fR command for more details.
+.RE
.SH "SERVER SOCKETS"
.PP
If the \fB\-server\fR option is specified then the new socket