Figure 4-95 – ADIC Server User Manual

Page 147

Advertising
background image

aci_register

4-105

21 Dec 2001

Figure 4-95

Example of the aci_register Function

/* Modify existing client configuration */

int rc =0;

char *client = "SomeClient";

char * ipname = "CLIENT1";

enum aci_command action;

short avc;

short c;

short dism;

int i, j;

struct aci_client_entry client_entry;

rc = aci_clientstatus (client, &client_entry);

if ( !rc )

{

action = ACI_MODIFY;

avc = client_entry.avc;

dism= client_entry.dismount;

c = FALSE;

rc=aci_register(client,ipname,action,avc,c,dism);

if( rc )

aci_perror("Command failed: ");

else

printf ("Client %s updated.\n", client);

}

Advertising