Mercurial > emacs
changeset 68029:61a03413f18b
(Misc Network, Make Network): Minor cleanups.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 05 Jan 2006 03:33:17 +0000 |
parents | b0c2a07f73f6 |
children | fe40de091488 |
files | lispref/processes.texi |
diffstat | 1 files changed, 15 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/processes.texi Wed Jan 04 21:23:20 2006 +0000 +++ b/lispref/processes.texi Thu Jan 05 03:33:17 2006 +0000 @@ -1782,10 +1782,11 @@ @item :family @var{family} @var{family} specifies the address (and protocol) family for -communication. @code{nil} stands for automatically determine a the -proper address family for the given @var{host} and @var{service}. -@code{local} specifies a Unix socket, in which case @var{host} is ignored. -@code{ipv4} and @code{ipv6} specify to use IPv4 and IPv6 respectively. +communication. @code{nil} means determine the proper address family +automatically for the given @var{host} and @var{service}. +@code{local} specifies a Unix socket, in which case @var{host} is +ignored. @code{ipv4} and @code{ipv6} specify to use IPv4 and IPv6 +respectively. @item :local @var{local-address} For a server process, @var{local-address} is the address to listen on. @@ -2055,18 +2056,20 @@ @defun format-network-address address &optional omit-port This function converts the Lisp representation of a network address to a string. - A five-element vector @code{[@var{a} @var{b} -@var{c} @var{d} @var{p}]} represents an IPv4 address -@var{a}.@var{b}.@var{c}.@var{d} and port number @var{p}. -@code{format-network-address} converts that to the string -@code{"@var{a}.@var{b}.@var{c}.@var{d}:@var{p}"}. - A nine-element vector @code{[@var{a} @var{b} @var{c} @var{d} @var{e} + +A five-element vector @code{[@var{a} @var{b} @var{c} @var{d} @var{p}]} +represents an IPv4 address @var{a}.@var{b}.@var{c}.@var{d} and port +number @var{p}. @code{format-network-address} converts that to the +string @code{"@var{a}.@var{b}.@var{c}.@var{d}:@var{p}"}. + +A nine-element vector @code{[@var{a} @var{b} @var{c} @var{d} @var{e} @var{f} @var{g} @var{h} @var{p}]} represents an IPv6 address and port number. @code{format-network-address} converts that to the string @code{"[@var{a}:@var{b}:@var{c}:@var{d}:@var{e}:@var{f}:@var{g}:@var{h}]:@var{p}"}. -If the vector does not include the port number, @var{p}, or @var{omit-port} is -non-@code{nil}, the result does not include the @code{:@var{p}} suffix. +If the vector does not include the port number, @var{p}, or if +@var{omit-port} is non-@code{nil}, the result does not include the +@code{:@var{p}} suffix. @end defun @node Byte Packing