Browse Source

Using the right order

You won't believe how long it took me to realize that I had the
order the wrong way around... Holy f#!~...
master
David Lanzendörfer 1 year ago
parent
commit
c11b8882e6
1 changed files with 11 additions and 5 deletions
  1. +11
    -5
      tests.cpp

+ 11
- 5
tests.cpp View File

@ -6,9 +6,9 @@ int main()
{
DBus::default_dispatcher = &dispatcher;
DBus::Connection conn = DBus::Connection::SessionBus();
pEp::Client client(conn, "/pep/security", "pep.security");
pEp::Client *client = new pEp::Client(conn, "/security/pep", "security.pep");
message m;
/*message m;
pEp_identity from;
from.address="leviathan@libresilicon.com";
m.from=&from;
@ -18,8 +18,14 @@ int main()
pEpDBusRating rating;
pEpDBusEncryptionFlags flags;
pEpDBusStatus status;
src << m;
src.clear();
src << m;*/
//client.decrypt_message(src,keylist,rating,flags,status,dst);
client.send_test(src);
dst >> m;
//client.send_test(src);
for(int i=0; i<100; i++){
std::cout << i << std::endl;
client->send_test();
}
//dst >> m;
return 0;
}

Loading…
Cancel
Save