summaryrefslogtreecommitdiffstats
path: root/doc/OpenTcp.3
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2006-11-15 09:23:00 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2006-11-15 09:23:00 (GMT)
commitdd42e4e631d1c545378eb098a38df0e73e379e98 (patch)
tree994b2a6f3769b72c60403ff8a3825e46ca2ff910 /doc/OpenTcp.3
parentd5fe10bc62fe923beb3c1017e3f0612c518d196c (diff)
downloadtcl-dd42e4e631d1c545378eb098a38df0e73e379e98.zip
tcl-dd42e4e631d1c545378eb098a38df0e73e379e98.tar.gz
tcl-dd42e4e631d1c545378eb098a38df0e73e379e98.tar.bz2
Convert \fP to \fR for easier manual page scraping
Diffstat (limited to 'doc/OpenTcp.3')
-rw-r--r--doc/OpenTcp.312
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/OpenTcp.3 b/doc/OpenTcp.3
index f5b733d..70b80fa 100644
--- a/doc/OpenTcp.3
+++ b/doc/OpenTcp.3
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: OpenTcp.3,v 1.10 2005/05/10 18:33:57 kennykb Exp $
+'\" RCS: @(#) $Id: OpenTcp.3,v 1.11 2006/11/15 09:23:01 dkf Exp $
.so man.macros
.TH Tcl_OpenTcpClient 3 8.0 Tcl "Tcl Library Procedures"
.BS
@@ -114,24 +114,24 @@ replacement for the standard channel.
.PP
\fBTcl_OpenTcpServer\fR opens a TCP socket on the local host on a specified
\fIport\fR and uses the Tcl event mechanism to accept requests from clients
-to connect to it. The \fImyaddr\fP argument specifies the network interface.
-If \fImyaddr\fP is NULL the special address INADDR_ANY should be used to
+to connect to it. The \fImyaddr\fR argument specifies the network interface.
+If \fImyaddr\fR is NULL the special address INADDR_ANY should be used to
allow connections from any network interface.
Each time a client connects to this socket, Tcl creates a channel
for the new connection and invokes \fIproc\fR with information about
-the channel. \fIProc\fR must match the following prototype:
+the channel. \fIProc\fR must match the following prototype:
.CS
typedef void Tcl_TcpAcceptProc(
ClientData \fIclientData\fR,
Tcl_Channel \fIchannel\fR,
char *\fIhostName\fR,
- int \fIport\fP);
+ int \fIport\fR);
.CE
.PP
The \fIclientData\fR argument will be the same as the \fIclientData\fR
argument to \fBTcl_OpenTcpServer\fR, \fIchannel\fR will be the handle
for the new channel, \fIhostName\fR points to a string containing
-the name of the client host making the connection, and \fIport\fP
+the name of the client host making the connection, and \fIport\fR
will contain the client's port number.
The new channel
is opened for both input and output.