Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libsocket.tex @ 5461:0ded63bcf5de legacy-trunk
Document "" and "<broadcast>".
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 09 May 1997 02:21:51 +0000 |
| parents | 5126d4b819e9 |
| children | 84d7cc5e63cd |
line wrap: on
line diff
--- a/Doc/lib/libsocket.tex Fri May 09 02:21:06 1997 +0000 +++ b/Doc/lib/libsocket.tex Fri May 09 02:21:51 1997 +0000 @@ -33,6 +33,10 @@ 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}.
