From 6e9fed4dc6ab206f9f8576d9689348da4203b4ab Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Tue, 23 Apr 2019 15:15:37 +0400 Subject: [PATCH] Made base Kademlia routing --- .gradle/4.10.3/fileChanges/last-build.bin | Bin 0 -> 1 bytes .gradle/4.10.3/fileHashes/fileHashes.bin | Bin 0 -> 18947 bytes .gradle/4.10.3/fileHashes/fileHashes.lock | Bin 0 -> 17 bytes .gradle/4.10.3/gc.properties | 0 .gradle/4.10.3/taskHistory/taskHistory.bin | Bin 0 -> 20421 bytes .gradle/4.10.3/taskHistory/taskHistory.lock | Bin 0 -> 17 bytes .../buildOutputCleanup.lock | Bin 0 -> 17 bytes .gradle/buildOutputCleanup/cache.properties | 2 + .gradle/buildOutputCleanup/outputFiles.bin | Bin 0 -> 18731 bytes .gradle/vcs-1/gc.properties | 0 .idea/.name | 1 + .idea/codeStyles/Project.xml | 10 + .idea/codeStyles/codeStyleConfig.xml | 5 + .idea/gradle.xml | 17 + .idea/misc.xml | 7 + .idea/workspace.xml | 618 ++++++++++++++++++ build.gradle | 26 + gradle.properties | 1 + gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 56177 bytes gradle/wrapper/gradle-wrapper.properties | 6 + gradlew | 172 +++++ gradlew.bat | 84 +++ settings.gradle | 2 + .../influencedht/core/Number160.java | 534 +++++++++++++++ .../influencedht/core/DefaultKadConfig.kt | 29 + .../influencedht/core/IKadConfiguration.kt | 52 ++ .../influencedht/core/KeyComparator.kt | 30 + .../influencedht/core/PeerAddress.kt | 112 ++++ .../chronosx88/influencedht/core/Utils.kt | 141 ++++ .../core/routing/KademliaBucket.kt | 203 ++++++ .../core/routing/KademliaRoutingTable.kt | 194 ++++++ .../influencedht/core/routing/PeerContact.kt | 97 +++ .../influencedht/core/rpc/RPCActions.kt | 7 + 33 files changed, 2350 insertions(+) create mode 100644 .gradle/4.10.3/fileChanges/last-build.bin create mode 100644 .gradle/4.10.3/fileHashes/fileHashes.bin create mode 100644 .gradle/4.10.3/fileHashes/fileHashes.lock create mode 100644 .gradle/4.10.3/gc.properties create mode 100644 .gradle/4.10.3/taskHistory/taskHistory.bin create mode 100644 .gradle/4.10.3/taskHistory/taskHistory.lock create mode 100644 .gradle/buildOutputCleanup/buildOutputCleanup.lock create mode 100644 .gradle/buildOutputCleanup/cache.properties create mode 100644 .gradle/buildOutputCleanup/outputFiles.bin create mode 100644 .gradle/vcs-1/gc.properties create mode 100644 .idea/.name create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/gradle.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/workspace.xml create mode 100644 build.gradle create mode 100644 gradle.properties create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100755 gradlew create mode 100644 gradlew.bat create mode 100644 settings.gradle create mode 100644 src/main/java/io/gitub/chronosx88/influencedht/core/Number160.java create mode 100644 src/main/kotlin/io/github/chronosx88/influencedht/core/DefaultKadConfig.kt create mode 100644 src/main/kotlin/io/github/chronosx88/influencedht/core/IKadConfiguration.kt create mode 100644 src/main/kotlin/io/github/chronosx88/influencedht/core/KeyComparator.kt create mode 100644 src/main/kotlin/io/github/chronosx88/influencedht/core/PeerAddress.kt create mode 100644 src/main/kotlin/io/github/chronosx88/influencedht/core/Utils.kt create mode 100644 src/main/kotlin/io/github/chronosx88/influencedht/core/routing/KademliaBucket.kt create mode 100644 src/main/kotlin/io/github/chronosx88/influencedht/core/routing/KademliaRoutingTable.kt create mode 100644 src/main/kotlin/io/github/chronosx88/influencedht/core/routing/PeerContact.kt create mode 100644 src/main/kotlin/io/github/chronosx88/influencedht/core/rpc/RPCActions.kt diff --git a/.gradle/4.10.3/fileChanges/last-build.bin b/.gradle/4.10.3/fileChanges/last-build.bin new file mode 100644 index 0000000000000000000000000000000000000000..f76dd238ade08917e6712764a16a22005a50573d GIT binary patch literal 1 IcmZPo000310RR91 literal 0 HcmV?d00001 diff --git a/.gradle/4.10.3/fileHashes/fileHashes.bin b/.gradle/4.10.3/fileHashes/fileHashes.bin new file mode 100644 index 0000000000000000000000000000000000000000..755f2298f2a7c1f5be2da867180855df91abb7ca GIT binary patch literal 18947 zcmeI%?@Lor7zglkeIaT;yn?|%Ds5Jq4KeIRr6>~>2SO395I2w@Ux-6QmPEcVO_P{P zfnzDQdLcA4m@si8T8d5)DT&00<`0y@k>Ns#1?4<<_a5YS|AX;;;GTPU&hy=NK5th_ zh>DL&MGou4;TAgxKmY;|fB*y_009U<00Izz00bZa0SG_<0uX=z1mZ=&NH3BiUPh%$ z5H_hTgybEio8-sGhSH|;XZFNnLjn8$pzoZ!J?X|~m)NgpX8plUZLqoO9k|Df}&c&M@m6Y+1(X zwm?Lhx3K=*r@{Nb5;?y#uV;Psru~q3h7|%3fB*y_009U<00Izz00bZa0SG_<0uX=z z1Rwwb2tWV=5P$##AOHafKmY;|fB*y_009U<00Izz00bZq9|HOG8d~~f2@l`!Om%z5 zwN;zYw0-T~#kqAtxcbt}Ba`%y7S~IcTzR70>3@<@;h!~}{Ih@4^7oUFD6$=4R7gi=tU3t(|9bMeG!;knL?YZpYuX5CiiKHcE zV*PddioR;9pr+<>$Yz*u$P-_ilnG5Jv$D7~+&S1&Vsx#xjLQ>bL7BJ^S-fRhwd;J1 z$IrY-yTr*8>275rvEN;{snysr-aP!NO$mL7CHTrVI!PwHiGV-?o literal 0 HcmV?d00001 diff --git a/.gradle/4.10.3/fileHashes/fileHashes.lock b/.gradle/4.10.3/fileHashes/fileHashes.lock new file mode 100644 index 0000000000000000000000000000000000000000..1813494a8a7bd17a553ab15b90bd23634c057699 GIT binary patch literal 17 UcmZRc((BT{Ed0z*1_%%a067x`%>V!Z literal 0 HcmV?d00001 diff --git a/.gradle/4.10.3/gc.properties b/.gradle/4.10.3/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/.gradle/4.10.3/taskHistory/taskHistory.bin b/.gradle/4.10.3/taskHistory/taskHistory.bin new file mode 100644 index 0000000000000000000000000000000000000000..6e32ba8646bb5e7f2e1d892a1765e97bc10ed68b GIT binary patch literal 20421 zcmeI%PfXKL90%}rBa!%b9!!YFKQSCMLd!N7Lk|WV3I_iKn1~pc(!Q~dvCh|SL-ZgB zLIR>BN{mF~$%Gj3A|eKjoIH47c+*5;ym2rw(F2~avuhaQfn-38`8H|yw!Z#;@Auhz zZ-;ppCdW3PI+%rH+d>m92tWV=5P$##AOHafKmY;|fB*y_009U<00Izz00jOQ0k2-j zdZU<}JWH~%CC)Gf8}$ZTAnrJ8+4Sgval4|_{Qtmw)j!{F+`|A+1t<8C{S@aVr++qwi>j;z8*C=RWphl!}M6)pL z1RqdZ2rmYx5?0h!K5;woI`MM)T4EwGns_zcG2P3HibVM1LQLQ*!~Rf|ghk@1sO6ie zAcaVr)8kofyGq)x*UwLVA-2ck-9Ls0S0?VtL|HPpo}fUF$|0hc|DMgTem+ixNQBT7 zM}F!pr>C&mK0oRBR9ZWEsG-3<+gCYucU9A^YVakc+>B5~FI$s|nxg!$T9gZ!thRl# zd#Vm!`PMabqs%)z6CY*QAnRJ>SW;N8`g?_@Y+qzJOXF7Cfw`%=^D~2aA$t#r`qnfOQS0dMz>% literal 0 HcmV?d00001 diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock new file mode 100644 index 0000000000000000000000000000000000000000..43bbf8dbe03d523906fcb403fe920ec0188d4d8c GIT binary patch literal 17 UcmZQx{J&-GmcF@<86ZFa07e}JsQ>@~ literal 0 HcmV?d00001 diff --git a/.gradle/buildOutputCleanup/cache.properties b/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000..e2929b1 --- /dev/null +++ b/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Mon Apr 22 12:19:07 MSK 2019 +gradle.version=4.10.3 diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin new file mode 100644 index 0000000000000000000000000000000000000000..3bb25f4e72dc4bb3157ffef4a2993fa5f2a726b9 GIT binary patch literal 18731 zcmeI&txE%89Ki8s7MXidgRliX41z&LSdqCR7(DA-v53JJY$7tyvY=t=f1pk9s?hiV)hjgbif1Q0*~ z0R#|0009ILKmY**5I_I{1Q0*~0R;YwK*D~J7WZXBeNE2LnpA4gZx4Zuz;63ley(In8dOg^?>&dv?3`;M^*RKZ_PKNdV8R?br z3uD4NAJP3ty75?z7Ov_s-AAPNula`R;oy$$+tSUg?nFLSsJq>4mOfiuS}h*tQhI+{ z`r>o8WIbejy5CD*-c-~3{`ZRRN$D$P!$`+EpLCB)m#b19)4j(T0R#|0009ILKmY** z5I_I{1Q0*~0R#|0009ILKmY**5I_I{1Q0*~0R#|0009ILKmY**5I_Kd-w|+r#`oIG T<1FVC{8H@j$IJI;{-JyV(v!cd literal 0 HcmV?d00001 diff --git a/.gradle/vcs-1/gc.properties b/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..a56527e --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +influencedht \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..1bec35e --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..310e0f2 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..bc8d0a3 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..084327a --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,618 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + to + toByt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +