-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: file:///home/toad/git-migration/temprepository/trunk/apps/CppFCPLib@14297 67a373e5-eb02-0410-a15c-ee090a768436
- Loading branch information
mkolar
committed
Jul 24, 2007
1 parent
911db64
commit 3a7b5e1
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include <iostream> | ||
#include "FCPLib.h" | ||
|
||
using namespace FCPLib; | ||
|
||
int main( int argc, char* argv[]) { | ||
if ( argc != 2 ) { | ||
std::cout << "Usage :: ./list_peer_notes <identity>" << std::endl; | ||
return 1; | ||
} | ||
|
||
Node n("List Peer Notes Test", "", -1); | ||
|
||
MessagePtrContainer peer_notes = n.listPeerNotes(argv[1]); | ||
|
||
for (MessagePtrContainer::iterator it = peer_notes.begin(); | ||
it != peer_notes.end(); | ||
++it) { | ||
std::cout << (*it)->toString() << std::endl; | ||
std::cout << std::endl; | ||
} | ||
n.shutdown(); | ||
|
||
return 0; | ||
} |