diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2011-02-10 18:30:07 -0800 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2011-02-10 18:30:07 -0800 |
commit | f21ee8771ea536074593192c11d3183ad2fd3568 (patch) | |
tree | 429d4ae6bc29f5b8b84730901e20cd67dcba5233 /NOTES | |
parent | 85a92c0112e74709c08a168c802cee05fd9198b4 (diff) |
Lots of changes, added many new functions to the applet.
Diffstat (limited to 'NOTES')
-rw-r--r-- | NOTES | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,7 +1,7 @@ (use '(org.gnu.clojure.gnunet bloomfilter core crypto exception filesharing hello hostlist inet iostream message parser peer tcp transport udp util)) (def random (java.security.SecureRandom.)) (def keypair (generate-rsa-keypair! random)) -(def my-peer (new-peer {:keypair keypair :random random})) +(def my-peer (new-peer {:public-key (.getPublic keypair) :private-key (.getPrivate keypair) :random random})) (.start (:selector-thread my-peer)) (activate-tcp! my-peer 5678) (configure-inet-addresses! my-peer "tcp" (get-local-addresses) 5678) |