author | Michael Krelin <hacker@klever.net> | 2007-12-30 21:09:33 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-01-04 18:22:51 (UTC) |
commit | 40303fc819bc509f5593bf07c082f3d116023c18 (patch) (unidiff) | |
tree | 5bfaff92ddac50d697cb7117a95151b0b74033b8 /test | |
parent | b7cec6ccef5d4178cf02c4cc240fd39ab7c8fe97 (diff) | |
download | libopkele-40303fc819bc509f5593bf07c082f3d116023c18.zip libopkele-40303fc819bc509f5593bf07c082f3d116023c18.tar.gz libopkele-40303fc819bc509f5593bf07c082f3d116023c18.tar.bz2 |
idiscover: dump ProviderID
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | test/idiscover.cc | 4 |
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) { | |||
18 | o << "{" << endl | 18 | o << "{" << endl |
19 | << " Type: "; | 19 | << " Type: "; |
20 | copy(s.types.begin(),s.types.end(), | 20 | copy(s.types.begin(),s.types.end(), |
21 | ostream_iterator<string>(o," ")); | 21 | ostream_iterator<string>(o," ")); |
22 | o << endl | 22 | o << endl |
23 | << " URI: " << s.uris << endl | 23 | << " URI: " << s.uris << endl |
24 | << " LocalID: " << s.local_ids << endl; | 24 | << " LocalID: " << s.local_ids << endl |
25 | << " ProviderID: " << s.provider_id << endl; | ||
25 | o << "}"; | 26 | o << "}"; |
26 | } | 27 | } |
27 | 28 | ||
28 | int main(int argc,char **argv) { | 29 | int main(int argc,char **argv) { |
29 | try { | 30 | try { |
30 | if(argc<2) | 31 | if(argc<2) |
@@ -39,12 +40,13 @@ int main(int argc,char **argv) { | |||
39 | << "The identity is " << (discovery.xri_identity?"":"not ") << "an i-name" << endl; | 40 | << "The identity is " << (discovery.xri_identity?"":"not ") << "an i-name" << endl; |
40 | if(discovery.xrd.expires) | 41 | if(discovery.xrd.expires) |
41 | clog << "Information expires in " << discovery.xrd.expires-time(0) << " seconds" << endl; | 42 | clog << "Information expires in " << discovery.xrd.expires-time(0) << " seconds" << endl; |
42 | clog << endl | 43 | clog << endl |
43 | << "CanonicalID: " << discovery.xrd.canonical_ids << endl | 44 | << "CanonicalID: " << discovery.xrd.canonical_ids << endl |
44 | << "LocalID: " << discovery.xrd.local_ids << endl | 45 | << "LocalID: " << discovery.xrd.local_ids << endl |
46 | << "ProviderID: " << discovery.xrd.provider_id << endl | ||
45 | << "Services: " << discovery.xrd.services << endl; | 47 | << "Services: " << discovery.xrd.services << endl; |
46 | } | 48 | } |
47 | }catch(exception& e) { | 49 | }catch(exception& e) { |
48 | cerr << "oops: " << e.what() << endl; | 50 | cerr << "oops: " << e.what() << endl; |
49 | _exit(1); | 51 | _exit(1); |
50 | } | 52 | } |