From e4f347e779c9999de6282ebbfb2ec2112aa87f2a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 9 May 1997 02:21:51 +0000 Subject: [PATCH] Document "" and "". --- Doc/lib/libsocket.tex | 4 ++++ Doc/libsocket.tex | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex index baf6373243..3b6cee09c5 100644 --- a/Doc/lib/libsocket.tex +++ b/Doc/lib/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{""} 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}. diff --git a/Doc/libsocket.tex b/Doc/libsocket.tex index baf6373243..3b6cee09c5 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{""} 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}. -- 2.50.1