Constructs an
address
object.name
should be of type IPV4-ARRAY, IPV6-ARRAY orstring
in which case an instance of IPV4-ADDRESS, IPV6-ADDRESS orlocal-address
, respectively, will be created. Otherwise, atype-error
is signalled. See alsoensure-address
.
Returns a copy of
address
which is ADDRESS= to the original.
If
family
is:local
, alocal-address
is instantiated withaddress
as itsname
slot. Iffamily
is:internet
, an appropriate subtype ofinet-address
is instantiated after guessing the address type throughaddress-to-vector
. If the address is invalid anderrorp
is notnil
, then acl:parse-error
is signalled, otherwisenil
is returned.When
address
is already an instance of theaddress
class, a check is made to see if it matches thefamily
argument and it is returned unmodified.
Convert any representation of an internet address to a vector. Allowed inputs are: unsigned 32-bit integers, strings, vectors and
inet-address
objects. If the address is valid, two values are returned: the vector and the address type (:IPV4 or IPV6), otherwisenil
is returned.