Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libsocket.tex @ 7277:bf4e790bd61a legacy-trunk
Remove all \bcode / \ecode cruft; this is no longer needed. See previous
checkin of myformat.sty.
Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}"
everywhere.
Some other minor nits that I happened to come across.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Fri, 13 Feb 1998 06:58:54 +0000 |
| parents | 98a9da520f1d |
| children | d22cf666fa2c |
line wrap: on
line diff
--- a/Doc/lib/libsocket.tex Fri Feb 13 06:48:05 1998 +0000 +++ b/Doc/lib/libsocket.tex Fri Feb 13 06:58:54 1998 +0000 @@ -47,7 +47,7 @@ The module \code{socket} exports the following constants and functions: -\renewcommand{\indexsubitem}{(in module socket)} +\setindexsubitem{(in module socket)} \begin{excdesc}{error} This exception is raised for socket- or address-related errors. The accompanying value is either a string telling what went wrong or a @@ -190,7 +190,7 @@ \code{makefile()} these correspond to \UNIX{} system calls applicable to sockets. -\renewcommand{\indexsubitem}{(socket method)} +\setindexsubitem{(socket method)} \begin{funcdesc}{accept}{} Accept a connection. The socket must be bound to an address and listening for connections. @@ -343,7 +343,7 @@ socket it is listening on but on the new socket returned by \code{accept}. -\bcode\begin{verbatim} +\begin{verbatim} # Echo server program from socket import * HOST = '' # Symbolic name meaning the local host @@ -358,9 +358,9 @@ if not data: break conn.send(data) conn.close() -\end{verbatim}\ecode +\end{verbatim} % -\bcode\begin{verbatim} +\begin{verbatim} # Echo client program from socket import * HOST = 'daring.cwi.nl' # The remote host @@ -371,7 +371,7 @@ data = s.recv(1024) s.close() print 'Received', `data` -\end{verbatim}\ecode +\end{verbatim} % \begin{seealso} \seemodule{SocketServer}{classes that simplify writing network servers}
