asopenserver_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 dae­
       mon.  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 cre­
       ate 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.


NOTES

       asopenserver_from_optinfo  is found in the library "libar­
       ray.so", and will be loaded if  the  option  "-larray"  is
       used with cc(1) or ld(1).


SEE ALSO

       aserrorcode(3X), asopenserver(3X), asparseopts(3X), asset­
       serveropt(3X), array_sessions(5).


DIAGNOSTICS

       asopenserver_from_optinfo returns a non-zero array  server
       token  if  successful,  or  NULL if not.  If unsuccessful,
       aserrorcode(3X) will be set appropriately.


Man(1) output converted with man2html