1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

(Misc Network, Make Network): Minor cleanups.

This commit is contained in:
Richard M. Stallman 2006-01-05 03:33:25 +00:00
parent eaa9920556
commit d9043ddf76
2 changed files with 19 additions and 12 deletions

View File

@ -1,3 +1,7 @@
2006-01-04 Richard M. Stallman <rms@gnu.org>
* processes.texi (Misc Network, Make Network): Minor cleanups.
2006-01-04 Kim F. Storm <storm@cua.dk>
* processes.texi (Make Network): Add IPv6 addresses and handling.

View File

@ -1782,10 +1782,11 @@ the system select an unused port number.
@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 @@ The current flags of the interface.
@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