Site/SunNet/Domain Manager Reference Manual
  Rechercher uniquement dans ce livre
Télécharger cet ouvrage au format PDF

NAME

netmgt_save_argument, netmgt_restore_argument - save and restore optional argument

SYNOPSIS

bool_t
netmgt_save_argument (name, argument)
        char * name,
        Netmgt_argument * argument;
bool_t
netmgt_restore_argument (argument)
        Netmgt_argument * argument;

DESCRIPTION

netmgt_save_argument copies information about an optional argument into the buffer pointed to by argument .
netmgt_restore_argument sets a argument from the contents of the buffer pointed to by argument .
typedef struct
{
char name [NETMGT_NAMESIZ] ;
/* argument name * /
u_int type ;
/* argument type * /
u_int length ;
/* argument length * /
u_char value [NETMGT_VALUESIZ] ;
/* argument value buffer * /
}
Netmgt_argument ;
The members of this structure are:
name
Optional argument name
type
Argument data type
length Argument value length
value
Argument value buffer

DESCRIPTION

TRUE if successful, otherwise FALSE.

DIAGNOSTICS

If false is returned, global variable netmgt_errno indicates the error. The caller can get the reason for the error with netmgt_fetch_error(3N).

FILES

netmgt_arglist.h, netmgt_msg.h, netmgt_request.h

SEE ALSO

netmgt_fetch_error(3N), netmgt_save_request(3N), netmgt_save_threshold(3N)

NOTES

Only agents may call this function.