add dependencies on streaming lib, skeleton of i2p connector

pull/4/head
Zlatin Balevsky 2018-07-25 14:21:13 +01:00
parent 16fc1f42c7
commit cf6a9b9314
2 changed files with 14 additions and 0 deletions

View File

@ -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'
}

View File

@ -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