Commit Graph

316 Commits (5dcef3ca05f1e41ebbaed5b14a2268b28eff383f)

Author SHA1 Message Date
Zlatin Balevsky e2acf7fddc wip on handling search results 2019-05-24 13:06:42 +01:00
Zlatin Balevsky 8ea6ecdea9 store properties on startup 2019-05-23 19:59:39 +01:00
Zlatin Balevsky ee8c39f032 serialization of personas. Load persona on startup 2019-05-23 18:55:47 +01:00
Zlatin Balevsky 681feed70c Name serialization 2019-05-23 17:21:48 +01:00
Zlatin Balevsky b03ed706c5 nickname is part of settings 2019-05-23 17:20:04 +01:00
Zlatin Balevsky 98718475c1 fix gradle build by adding missing deps 2019-05-23 14:04:47 +01:00
Zlatin Balevsky f14d4e652e add destination the query was received from 2018-08-04 13:13:48 +01:00
Zlatin Balevsky 3a2fad4816 skeleton of leaf searcher 2018-08-03 23:31:52 +01:00
Zlatin Balevsky 76b190b742 upsert and delete events 2018-08-03 22:47:15 +01:00
Zlatin Balevsky 376075df8a execute a script if provided one 2018-08-02 02:10:22 +01:00
Zlatin Balevsky 2dc26cf7bf do not log warning on SocketTimeoutExceptions 2018-07-28 22:19:16 +01:00
Zlatin Balevsky c98248f8b5 fix typo 2018-07-28 20:23:49 +01:00
Zlatin Balevsky dd287bae18 add disconnection event, publish it on closing connections, handle it in connection manager 2018-07-28 20:19:02 +01:00
Zlatin Balevsky 9aeb9de070 log length as well 2018-07-27 16:00:32 +01:00
Zlatin Balevsky a76d055771 fix handling of second byte 2018-07-27 15:58:13 +01:00
Zlatin Balevsky 736a4a7424 Configure deflater output streams for sync flush, flush after each message 2018-07-27 15:48:23 +01:00
Zlatin Balevsky a004bd430a start connection manager, fix some issues 2018-07-27 14:51:31 +01:00
Zlatin Balevsky 4e31f216a8 wip on getting pings to work 2018-07-27 12:13:07 +01:00
Zlatin Balevsky 8edd495430 tie in sending of pings on a timer 2018-07-27 11:54:10 +01:00
Zlatin Balevsky cfb04a9811 work on handling pings 2018-07-27 09:40:58 +01:00
Zlatin Balevsky fbb1292862 header un/packing 2018-07-27 08:59:46 +01:00
Zlatin Balevsky e38fc4242b utility to write unsigned shorts 2018-07-27 08:10:50 +01:00
Zlatin Balevsky 3e02161b7d add top-level sendPing method to connections 2018-07-27 07:43:59 +01:00
Zlatin Balevsky 70cc2528c4 return successful peers in rejection suggestion 2018-07-27 00:11:11 +01:00
Zlatin Balevsky 9bd40b01de count successes for hosts, add method to retrieve only successful hosts 2018-07-27 00:06:29 +01:00
Zlatin Balevsky 6380af7d12 skeleton of connection implementation 2018-07-26 23:13:23 +01:00
Zlatin Balevsky b2796a3d40 logic in connection managers to check if already connected. Prevent infinite connect loop. Fix Connction constructors 2018-07-26 19:03:13 +01:00
Zlatin Balevsky 7c0f5b4e88 outgoing connections are never to leafs 2018-07-26 18:43:09 +01:00
Zlatin Balevsky 3b616b8947 toString() methods in some events 2018-07-26 18:40:08 +01:00
Zlatin Balevsky 351edcb20e make connection events carry leaf status information 2018-07-26 18:11:08 +01:00
Zlatin Balevsky 063357120c only connect to hosts not already in progress 2018-07-26 12:44:53 +01:00
Zlatin Balevsky e62bceda29 wire connector and acceptor together 2018-07-26 12:39:02 +01:00
Zlatin Balevsky 90a1fa6a0d implement hooks into i2p streaming lib 2018-07-26 12:20:17 +01:00
Zlatin Balevsky 92e5cc87ef more unit tests 2018-07-26 09:38:21 +01:00
Zlatin Balevsky 37909d5193 acceptor test 2018-07-26 09:16:32 +01:00
Zlatin Balevsky 977b273656 implement rejection suggestions 2018-07-26 08:29:05 +01:00
Zlatin Balevsky 520d04cba4 wip on acceptor 2018-07-26 03:57:53 +01:00
Zlatin Balevsky 511c68a203 skeleton of connection acceptor 2018-07-26 03:06:59 +01:00
Zlatin Balevsky b3dd89dbe5 ignore incoming connection events 2018-07-26 02:50:43 +01:00
Zlatin Balevsky 3d78b110f0 Move all event dispatching to it's own thread. Update tests to wait a bit 2018-07-26 01:02:32 +01:00
Zlatin Balevsky f8a36d310f more tests and fixes 2018-07-26 00:53:21 +01:00
Zlatin Balevsky 82420cc217 fix thread creation and logging 2018-07-25 23:59:38 +01:00
Zlatin Balevsky 49bb78688f add empty constructors for mocking 2018-07-25 23:56:56 +01:00
Zlatin Balevsky 9c85dfa7b4 work on establisher test 2018-07-25 23:56:18 +01:00
Zlatin Balevsky ac8d554332 Do not let exceptions in post-rejection json trigger close loops 2018-07-25 20:54:52 +01:00
Zlatin Balevsky 7a77b88d49 handle rejection and suggested hosts 2018-07-25 20:43:49 +01:00
Zlatin Balevsky e10eb7648b Make Endpoint implement Closeable, more work on outgoing handshakes 2018-07-25 20:26:18 +01:00
Zlatin Balevsky 074b2e51fb prevent infinite loop if we don't know of any unconnected hosts 2018-07-25 19:27:59 +01:00
Zlatin Balevsky 53fde470ee prevent infinite loop if we don't know of any unconnected hosts 2018-07-25 19:26:08 +01:00
Zlatin Balevsky fd4ee74079 Work on connection establishment 2018-07-25 19:05:25 +01:00
Zlatin Balevsky b0b9430479 Change connection event to carry an endpoint 2018-07-25 18:54:07 +01:00
Zlatin Balevsky 1b629a8f0a Initialize i2p session first on startup. Prevent own destination from ending up in host cache 2018-07-25 17:39:21 +01:00
Zlatin Balevsky b7518a8b63 skeleton of connection establisher 2018-07-25 14:46:06 +01:00
Zlatin Balevsky cf6a9b9314 add dependencies on streaming lib, skeleton of i2p connector 2018-07-25 14:21:13 +01:00
Zlatin Balevsky 16fc1f42c7 introduce Endpoint concept for i2p endpoints 2018-07-25 13:53:47 +01:00
Zlatin Balevsky 0630727892 filter own destination if returned from hostcache 2018-07-24 04:16:00 +01:00
Zlatin Balevsky 05059878c7 initialize interval and hook up listener 2018-07-24 03:52:40 +01:00
Zlatin Balevsky 46ddd65e03 wire some components together 2018-07-24 03:52:14 +01:00
Zlatin Balevsky 19a688037f more efficient persisting 2018-07-23 19:41:59 +01:00
Zlatin Balevsky 5a2019f8eb first pass at main point 2018-07-23 16:09:59 +01:00
Zlatin Balevsky 07b8724e8f add waitForLoad() method to loadable services 2018-07-23 16:09:43 +01:00
Zlatin Balevsky afcc39ada9 Initialize settings from Properties 2018-07-23 16:08:30 +01:00
Zlatin Balevsky c0113dd738 switch to groovy entry point 2018-07-23 15:20:42 +01:00
Zlatin Balevsky cea5825b8d switch to groovy entry point 2018-07-23 15:18:24 +01:00
Zlatin Balevsky 0b43be2bc4 HostCache client 2018-07-23 15:02:45 +01:00
Zlatin Balevsky e860ee1e20 log event seqNo and timestamp. Fix synchronization 2018-07-23 01:08:08 +01:00
Zlatin Balevsky ffa659b030 work on cache client 2018-07-22 23:00:04 +01:00
Zlatin Balevsky 7d099e7478 add checker if a destination is a registered hostcache 2018-07-22 22:59:44 +01:00
Zlatin Balevsky f2f09a359d add logging to event bus 2018-07-22 22:58:56 +01:00
Zlatin Balevsky 5407aa8616 skeleton of hostcache client 2018-07-22 16:41:09 +01:00
Zlatin Balevsky a233876c4e more tests 2018-07-22 12:31:00 +01:00
Zlatin Balevsky 68e669d656 hostcache tests and fixes 2018-07-22 10:56:00 +01:00
Zlatin Balevsky db98d63caf respond to discovery of new hosts and connection attempts 2018-07-22 09:37:32 +01:00
Zlatin Balevsky 2e95831a24 HostCache functionality 2018-07-22 05:32:26 +01:00
Zlatin Balevsky cbe359deca skeleton of host cache querying functionality 2018-07-22 04:42:12 +01:00
Zlatin Balevsky 6ddce7d276 Make connection manager listen to trust events 2018-07-22 04:03:05 +01:00
Zlatin Balevsky d708939f61 connection manager type hierarchy 2018-07-21 22:21:39 +01:00
Zlatin Balevsky 9d32aae459 settings class 2018-07-21 22:21:24 +01:00
Zlatin Balevsky fd061f615a type hierarchy of connections 2018-07-21 21:49:02 +01:00
Zlatin Balevsky d5de29e62a network query event 2018-07-21 21:35:22 +01:00
Zlatin Balevsky 04cb23bbef tests for trust service 2018-07-21 15:50:23 +01:00
Zlatin Balevsky a0c9252a3f Skeleton of trust framework 2018-07-21 15:06:10 +01:00
Zlatin Balevsky 11167a291b search and unsharing of files 2018-07-21 10:30:24 +01:00
Zlatin Balevsky dd68d92337 remove functionality 2018-07-21 09:27:29 +01:00
Zlatin Balevsky 01617f876d fixes for not found scenarios 2018-07-21 09:15:32 +01:00
Zlatin Balevsky e395c37c31 move search-related code to new package 2018-07-21 06:10:33 +01:00
Zlatin Balevsky 5a2c11ac64 move search-related code to new package 2018-07-21 06:07:38 +01:00
Zlatin Balevsky d16f0a40bb make the index String to String 2018-07-21 06:02:07 +01:00
Zlatin Balevsky a8eb37458f basic search index 2018-07-21 02:26:38 +01:00
Zlatin Balevsky f377807101 search-related events, skeleton of file manager 2018-07-21 01:58:35 +01:00
Zlatin Balevsky 3f3588dbe4 persistence of downloaded files and test 2018-07-20 23:21:48 +01:00
Zlatin Balevsky 495570bd49 persisiting of shared files and test 2018-07-20 22:59:49 +01:00
Zlatin Balevsky afb5f80e0c handle empty line at end of file 2018-07-20 21:54:29 +01:00
Zlatin Balevsky a14089f109 Rename 2018-07-20 21:30:50 +01:00
Zlatin Balevsky 5d205ff742 rename 2018-07-20 21:29:53 +01:00
Zlatin Balevsky 6bb5cb5f4c test for persistence of destinations of downloaded file 2018-07-20 21:26:51 +01:00
Zlatin Balevsky acc9355372 test for 2 shared files 2018-07-20 21:05:54 +01:00
Zlatin Balevsky b86f81159e wip on persistence tests 2018-07-20 20:55:05 +01:00
Zlatin Balevsky 206ee8a8dc work on persister service and tests 2018-07-20 20:16:10 +01:00
Zlatin Balevsky 198eb138dc Downloaded file and event 2018-07-20 15:58:43 +01:00
Zlatin Balevsky 95071deb0a event bus implementation that uses dynamic method invocation 2018-07-20 04:03:04 +01:00
Zlatin Balevsky fe405d5faf increase timeout for hashing 2018-07-20 04:02:08 +01:00
Zlatin Balevsky 1ac93f117a skeleton of perister service 2018-07-20 03:27:01 +01:00
Zlatin Balevsky 80e007c148 more file-related events 2018-07-19 22:13:36 +01:00
Zlatin Balevsky 5dff8fcad7 HasherService and tests 2018-07-19 18:19:53 +01:00
Zlatin Balevsky 410b5ffc9b Events and skeleton of hashing service 2018-07-19 17:38:48 +01:00
Zlatin Balevsky 8ab9e50628 move FileHasher and test to a new package 2018-07-19 17:24:24 +01:00
Zlatin Balevsky 86ce4b5b1d move FileHasher and test to a new package 2018-07-19 17:21:57 +01:00
Zlatin Balevsky f9631e1a4a hashing of files 2018-07-18 19:18:22 +01:00
Zlatin Balevsky 82cc664fa2 explicitly use longs 2018-07-18 18:29:06 +01:00
Zlatin Balevsky 858c223b4c Set maximum size of shared file to 128GB and max number of pieces to 128 2018-07-18 18:23:47 +01:00
Zlatin Balevsky c28708feb7 simple test 2018-07-17 22:31:34 +01:00
Zlatin Balevsky 8e464604f4 fix digest name 2018-07-17 22:30:58 +01:00
Zlatin Balevsky 0190db2046 toString 2018-07-17 22:15:23 +01:00
Zlatin Balevsky b8c3a380ba Data structures for InfoHash and a shared file 2018-07-17 21:59:00 +01:00
Zlatin Balevsky 2c6d45c569 create core package 2018-07-17 21:30:32 +01:00