From cf6a9b931428433fe8a0648825669751d4c514fc Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Wed, 25 Jul 2018 14:21:13 +0100 Subject: [PATCH] add dependencies on streaming lib, skeleton of i2p connector --- core/build.gradle | 5 +++++ .../com/muwire/core/connection/I2PConnector.groovy | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/core/build.gradle b/core/build.gradle index 4c465e13..36b7dcbc 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -1 +1,6 @@ mainClassName = 'com.muwire.core.Core' + +dependencies { + compile 'net.i2p.client:mstreaming:0.9.35' + compile 'net.i2p.client:streaming:0.9.35' +} diff --git a/core/src/main/groovy/com/muwire/core/connection/I2PConnector.groovy b/core/src/main/groovy/com/muwire/core/connection/I2PConnector.groovy index 42ba8fc0..928df39c 100644 --- a/core/src/main/groovy/com/muwire/core/connection/I2PConnector.groovy +++ b/core/src/main/groovy/com/muwire/core/connection/I2PConnector.groovy @@ -1,9 +1,18 @@ package com.muwire.core.connection +import net.i2p.client.streaming.I2PSocketManager import net.i2p.data.Destination class I2PConnector { + final I2PSocketManager socketManager + + I2PConnector() {} + + I2PConnector(I2PSocketManager socketManager) { + this.socketManager = socketManager + } + Endpoint connect(Destination dest) { //TODO implement null