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