asopenserver_from_optinfo(3x)asopenserver_from_optinfo(3x)NAMEasopenserver_from_optinfo - create array server token
SYNOPSIS
#include <arraysvcs.h>
asserver_t asopenserver_from_optinfo(const asoptinfo_t *Info);
DESCRIPTION
The asopenserver_from_optinfo function is used to create and modify an
array server token using parameters taken from an asoptinfo_t structure.
The resulting array server token can be used with other libarray
functions to direct array services requests to a specific array services
daemon. For further details, see asopenserver(3X).
The Info argument is a pointer to an asoptinfo_t structure containing all
of the relevant information needed to create the server token and
optionally set various options pertaining to it. asoptinfo_t structures
are typically generated from a list of command line arguments using the
asparseopts(3X) function, though it can also be generated manually. Note
that only members that have been marked as "valid" in the asoptinfo_t
will be used by asopenserver_from_optinfo. See asparseopts(3X) for more
information about asoptinfo_t structures.
NOTESasopenserver_from_optinfo is found in the library "libarray.so", and will
be loaded if the option "-larray" is used with cc(1) or ld(1).
SEE ALSOaserrorcode(3X), asopenserver(3X), asparseopts(3X), assetserveropt(3X),
array_sessions(5).
DIAGNOSTICSasopenserver_from_optinfo returns a non-zero array server token if
successful, or NULL if not. If unsuccessful, aserrorcode(3X) will be set
appropriately.
Page 1