fprintf(stderr, " -a - List all entries\n");
fprintf(stderr, " -l <name> - Find entry for named object\n");
return 1;
}
void entryPrint(Boapns::BoapEntry entry){
BIter i;
BString al;
for(entry.addressList.start(i); !entry.addressList.isEnd(i); entry.addressList.next(i)){
if(al.len())
al = al + ",";
al = al + entry.addressList[i];
}
printf("%-16.16s %s:%d %d (%s)\n", entry.name.retStr(), entry.hostName.retStr(), entry.port, entry.service, al.retStr());
}
int main(int argc, char** argv){
Boapns::Boapns boapns("boapns");
int a;
BError err;
BString name;
Boapns::BoapEntry entry;
BList<Boapns::BoapEntry> entryList;
BIter i;
int flagListAll = 0;