summaryrefslogtreecommitdiffabout
path: root/test
authorMichael Krelin <hacker@klever.net>2007-12-13 18:33:20 (UTC)
committer Michael Krelin <hacker@klever.net>2007-12-13 18:37:33 (UTC)
commit58383f07af80dfd5b5c18e5158291c3d8caefbe7 (patch) (unidiff)
treefe7b9bc8da74bce0dcc6d8a033b8a8073f81ad14 /test
parent54f9cf0424f47ef6384bc55904097dc4ecb5fc78 (diff)
downloadlibopkele-58383f07af80dfd5b5c18e5158291c3d8caefbe7.zip
libopkele-58383f07af80dfd5b5c18e5158291c3d8caefbe7.tar.gz
libopkele-58383f07af80dfd5b5c18e5158291c3d8caefbe7.tar.bz2
keep track of whether the identity being discovered is XRI
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'test') (more/less context) (ignore whitespace changes)
-rw-r--r--test/idiscover.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/idiscover.cc b/test/idiscover.cc
index 2abedc9..05cbcae 100644
--- a/test/idiscover.cc
+++ b/test/idiscover.cc
@@ -33,12 +33,13 @@ int main(int argc,char **argv) {
33 opkele::idiscovery_t discovery(argv[a]); 33 opkele::idiscovery_t discovery(argv[a]);
34 clog 34 clog
35 << "===============================================================" << endl 35 << "===============================================================" << endl
36 << "User-supplied ID: " << argv[a] << endl 36 << "User-supplied ID: " << argv[a] << endl
37 << "Normalized ID: " << discovery.normalized_id << endl 37 << "Normalized ID: " << discovery.normalized_id << endl
38 << "Canonicalized ID: " << discovery.canonicalized_id << endl 38 << "Canonicalized ID: " << discovery.canonicalized_id << endl
39 << "The identity is " << (discovery.xri_identity?"":"not ") << "an i-name" << endl
39 << endl 40 << endl
40 << "CanonicalID: " << discovery.xrd.canonical_ids << endl 41 << "CanonicalID: " << discovery.xrd.canonical_ids << endl
41 << "LocalID: " << discovery.xrd.local_ids << endl 42 << "LocalID: " << discovery.xrd.local_ids << endl
42 << "Services: " << discovery.xrd.services << endl; 43 << "Services: " << discovery.xrd.services << endl;
43 } 44 }
44 }catch(exception& e) { 45 }catch(exception& e) {