Adic Server Instrukcja Użytkownika Strona 147

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 218
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 146
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);
}
Przeglądanie stron 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 217 218

Komentarze do niniejszej Instrukcji

Brak uwag