mirror of
https://github.com/ChronosX88/Influence-Bootstrap-Node.git
synced 2024-11-24 16:22:18 +00:00
Added TomP2P to dependency.
This commit is contained in:
parent
39669a6ebf
commit
9179cf6fb3
@ -8,11 +8,14 @@ sourceCompatibility = 1.8
|
|||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
maven {
|
||||||
|
url "http://tomp2p.net/dev/mvn/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.google.code.gson:gson:2.8.5'
|
implementation 'com.google.code.gson:gson:2.8.5'
|
||||||
implementation 'io.github.chronosx88:kademliadht:1.0'
|
implementation 'net.tomp2p:tomp2p-all:5.0-Beta8'
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
package io.github.chronosx88.dhtBootstrap;
|
package io.github.chronosx88.dhtBootstrap;
|
||||||
|
|
||||||
import io.github.chronosx88.kademliadht.DefaultConfiguration;
|
|
||||||
import io.github.chronosx88.kademliadht.JKademliaNode;
|
|
||||||
import io.github.chronosx88.kademliadht.node.KademliaId;
|
|
||||||
import io.github.chronosx88.kademliadht.node.Node;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.Inet4Address;
|
import java.net.Inet4Address;
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
private static JKademliaNode node;
|
//private static JKademliaNode node;
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
/*
|
||||||
try {
|
try {
|
||||||
KademliaId kadID = new KademliaId("sgCZ+fg49g4N8FU43kW84cNVPTw=");
|
KademliaId kadID = new KademliaId("sgCZ+fg49g4N8FU43kW84cNVPTw=");
|
||||||
node = new JKademliaNode("Main Bootstrap Node", new Node(kadID, Inet4Address.getLocalHost(), 7243), 7243, new DefaultConfiguration());
|
node = new JKademliaNode("Main Bootstrap Node", new Node(kadID, Inet4Address.getLocalHost(), 7243), 7243, new DefaultConfiguration());
|
||||||
@ -18,5 +14,6 @@ public class Main {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user