|
|
1.1 ! root 1: ... ! 2: ! 3: if ((sf = addr2ref (PLocalHostName ())) == NULL) { ! 4: sf = &sfs; ! 5: (void) bzero ((char *) sf, sizeof *sf); ! 6: } ! 7: ! 8: /* read command line arguments here... */ ! 9: ! 10: if (AcAssocRequest (ctx, NULLAEI, NULLAEI, NULLPA, pa, pc, NULLOID, ! 11: 0, ROS_MYREQUIRE, SERIAL_NONE, 0, sf, NULLPEP, 0, NULLQOS, ! 12: acc, aci) ! 13: == NOTOK) ! 14: error ("A-ASSOCIATE.REQUEST: %s", AcErrString (aca -> aca_reason)); ! 15: ! 16: if (acc -> acc_result != ACS_ACCEPT) ! 17: error ("association rejected: %s", AcErrString (aca -> aca_reason)); ! 18: ! 19: sd = acc -> acc_sd; ! 20: ACCFREE (acc); ! 21: ! 22: if (RoSetService (sd, RoPService, &rois) == NOTOK) ! 23: error ("RoSetService: %s", RoErrString (rop -> rop_reason)); ! 24: ! 25: invoke (sd); /* invoke the operations, etc. */ ! 26: ! 27: if (AcRelRequest (sd, ACF_NORMAL, NULLPEP, 0, NOTOK, acr, aci) == NOTOK) ! 28: error ("A-RELEASE.REQUEST: %s", AcErrString (aca -> aca_reason)); ! 29: ! 30: if (!acr -> acr_affirmative) { ! 31: (void) AcUAbortRequest (sd, NULLPEP, 0, aci); ! 32: error ("release rejected by peer: %d", acr -> acr_reason); ! 33: } ! 34: ! 35: ACRFREE (acr); ! 36: ! 37: exit (0); ! 38: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.