summaryrefslogtreecommitdiffabout
path: root/test
authorMichael Krelin <hacker@klever.net>2007-12-30 21:09:33 (UTC)
committer Michael Krelin <hacker@klever.net>2008-01-04 18:22:51 (UTC)
commit40303fc819bc509f5593bf07c082f3d116023c18 (patch) (side-by-side diff)
tree5bfaff92ddac50d697cb7117a95151b0b74033b8 /test
parentb7cec6ccef5d4178cf02c4cc240fd39ab7c8fe97 (diff)
downloadlibopkele-40303fc819bc509f5593bf07c082f3d116023c18.zip
libopkele-40303fc819bc509f5593bf07c082f3d116023c18.tar.gz
libopkele-40303fc819bc509f5593bf07c082f3d116023c18.tar.bz2
idiscover: dump ProviderID
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'test') (more/less context) (ignore whitespace changes)
-rw-r--r--test/idiscover.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/idiscover.cc b/test/idiscover.cc
index 873da12..d9a7c62 100644
--- a/test/idiscover.cc
+++ b/test/idiscover.cc
@@ -18,13 +18,14 @@ ostream& operator<<(ostream& o,const opkele::xrd::service_t s) {
o << "{" << endl
<< " Type: ";
copy(s.types.begin(),s.types.end(),
ostream_iterator<string>(o," "));
o << endl
<< " URI: " << s.uris << endl
- << " LocalID: " << s.local_ids << endl;
+ << " LocalID: " << s.local_ids << endl
+ << " ProviderID: " << s.provider_id << endl;
o << "}";
}
int main(int argc,char **argv) {
try {
if(argc<2)
@@ -39,12 +40,13 @@ int main(int argc,char **argv) {
<< "The identity is " << (discovery.xri_identity?"":"not ") << "an i-name" << endl;
if(discovery.xrd.expires)
clog << "Information expires in " << discovery.xrd.expires-time(0) << " seconds" << endl;
clog << endl
<< "CanonicalID: " << discovery.xrd.canonical_ids << endl
<< "LocalID: " << discovery.xrd.local_ids << endl
+ << "ProviderID: " << discovery.xrd.provider_id << endl
<< "Services: " << discovery.xrd.services << endl;
}
}catch(exception& e) {
cerr << "oops: " << e.what() << endl;
_exit(1);
}