summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-06 18:37:08 (GMT)
committerFred Drake <fdrake@acm.org>2000-07-06 18:37:08 (GMT)
commitaa7524cf1ff37dde7c2d70f7879e87c23e1a88a0 (patch)
tree9c60499ca6c2eea5be94bb44f12117ffff83c706 /Doc/lib
parent1a10400692afe196add8253874f58cf6961c2f4c (diff)
downloadcpython-aa7524cf1ff37dde7c2d70f7879e87c23e1a88a0.zip
cpython-aa7524cf1ff37dde7c2d70f7879e87c23e1a88a0.tar.gz
cpython-aa7524cf1ff37dde7c2d70f7879e87c23e1a88a0.tar.bz2
Clean up markup to be more like recommended practice; only small changes
needed.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libsocket.tex14
1 files changed, 8 insertions, 6 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex
index 4c7afe8..6b44e15 100644
--- a/Doc/lib/libsocket.tex
+++ b/Doc/lib/libsocket.tex
@@ -230,6 +230,12 @@ This is a Python type object that represents the socket object type.
It is the same as \code{type(socket(...))}.
\end{datadesc}
+
+\begin{seealso}
+ \seemodule{SocketServer}{Classes that simplify writing network servers.}
+\end{seealso}
+
+
\subsection{Socket Objects \label{socket-objects}}
Socket objects have the following methods. Except for
@@ -393,8 +399,8 @@ Note that there are no methods \method{read()} or \method{write()};
use \method{recv()} and \method{send()} without \var{flags} argument
instead.
-\subsection{Example}
-\nodename{Socket Example}
+
+\subsection{Example \label{socket-example}}
Here are two minimal example programs using the TCP/IP protocol:\ a
server that echoes all data that it receives back (servicing only one
@@ -436,7 +442,3 @@ data = s.recv(1024)
s.close()
print 'Received', `data`
\end{verbatim}
-
-\begin{seealso}
- \seemodule{SocketServer}{classes that simplify writing network servers}
-\end{seealso}