]> granicus.if.org Git - python/commitdiff
Document "" and "<broadcast>".
authorGuido van Rossum <guido@python.org>
Fri, 9 May 1997 02:21:51 +0000 (02:21 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 9 May 1997 02:21:51 +0000 (02:21 +0000)
Doc/lib/libsocket.tex
Doc/libsocket.tex

index baf63732434d2f7acaf548c0ec60632669af4fe9..3b6cee09c579ff0ecc15e1a70d95ffa368c419dd 100644 (file)
@@ -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}.
index baf63732434d2f7acaf548c0ec60632669af4fe9..3b6cee09c579ff0ecc15e1a70d95ffa368c419dd 100644 (file)
@@ -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}.