Tcl Source Code

Check-in [daf88a2bd0]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[Bug 3472316] Document the destructive semantics of [fconfigure -error] on sockets.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: daf88a2bd0ef4455a67086d6eb2b298d8b60c71e
User & Date: ferrieux 2012-01-12 20:40:11
Context
2012-01-13
11:50
* library/http/http.tcl (http::Connect): [Bug 3472316]: Ensure that we only try to read the socket...
check-in: f9a94facca user: dkf tags: trunk
2012-01-12
20:40
[Bug 3472316] Document the destructive semantics of [fconfigure -error] on sockets. check-in: daf88a2bd0 user: ferrieux tags: trunk
13:23
[Bug 3466506]: Document more environment variables. check-in: 6f0fbae68b user: dkf tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to doc/socket.n.

153
154
155
156
157
158
159



160
161
162
163
164
165
166
.TP
\fB\-error\fR
.
This option gets the current error status of the given socket.  This
is useful when you need to determine if an asynchronous connect
operation succeeded.  If there was an error, the error message is
returned.  If there was no error, an empty string is returned.



.TP
\fB\-sockname\fR
.
For client sockets (including the channels that get created when a
client connects to a server socket) this option returns a list of
three elements, the address, the host name and the port number for the
socket. If the host name cannot be computed, the second element is







>
>
>







153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
.TP
\fB\-error\fR
.
This option gets the current error status of the given socket.  This
is useful when you need to determine if an asynchronous connect
operation succeeded.  If there was an error, the error message is
returned.  If there was no error, an empty string is returned.

Note that the error status is reset by the read operation; this mimics
the underlying getsockopt(SO_ERROR) call.
.TP
\fB\-sockname\fR
.
For client sockets (including the channels that get created when a
client connects to a server socket) this option returns a list of
three elements, the address, the host name and the port number for the
socket. If the host name cannot be computed, the second element is