summaryrefslogtreecommitdiffstats
path: root/Doc/libsocket.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-09 02:21:51 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-09 02:21:51 (GMT)
commite4f347e779c9999de6282ebbfb2ec2112aa87f2a (patch)
tree1197ca7d34347b901d0e03ee53543a9ad3a47f2d /Doc/libsocket.tex
parent57c30f6f37cb654e98637033b8ff1251385fb38b (diff)
downloadcpython-e4f347e779c9999de6282ebbfb2ec2112aa87f2a.zip
cpython-e4f347e779c9999de6282ebbfb2ec2112aa87f2a.tar.gz
cpython-e4f347e779c9999de6282ebbfb2ec2112aa87f2a.tar.bz2
Document "" and "<broadcast>".
Diffstat (limited to 'Doc/libsocket.tex')
-rw-r--r--Doc/libsocket.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/libsocket.tex b/Doc/libsocket.tex
index baf6373..3b6cee0 100644
--- a/Doc/libsocket.tex
+++ b/Doc/libsocket.tex
@@ -33,6 +33,10 @@ currently not supported. The address format required by a particular
socket object is automatically selected based on the address family
specified when the socket object was created.
+For IP addresses, two special forms are accepted instead of a host
+address: the empty string represents \code{INADDR_ANY}, and the string
+\code{"<broadcast>"} represents \code{INADDR_BROADCAST}.
+
All errors raise exceptions. The normal exceptions for invalid
argument types and out-of-memory conditions can be raised; errors
related to socket or address semantics raise the error \code{socket.error}.