2015-07-25 11:42:53 +00:00
|
|
|
package net.i2p.client.streaming;
|
2004-10-28 02:05:51 +00:00
|
|
|
|
2014-01-04 19:57:47 +00:00
|
|
|
import net.i2p.client.streaming.StreamSinkSend;
|
2004-10-28 02:05:51 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class StreamSinkTestClient {
|
|
|
|
public static void main(String args[]) {
|
|
|
|
//System.setProperty(I2PClient.PROP_TCP_HOST, "dev.i2p.net");
|
|
|
|
//System.setProperty(I2PClient.PROP_TCP_PORT, "4501");
|
|
|
|
System.setProperty("tunnels.depthInbound", "0");
|
|
|
|
|
|
|
|
if (args.length <= 0) {
|
|
|
|
send("/home/jrandom/libjbigi.so");
|
|
|
|
} else {
|
|
|
|
for (int i = 0; i < args.length; i++)
|
|
|
|
send(args[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private static void send(final String filename) {
|
|
|
|
Thread t = new Thread(new Runnable() {
|
|
|
|
public void run() {
|
|
|
|
StreamSinkSend.main(new String[] { filename, "0", "streamSinkTestLiveServer.key" });
|
|
|
|
}
|
|
|
|
}, "client " + filename);
|
|
|
|
t.start();
|
|
|
|
try { t.join(); } catch (Exception e) {}
|
|
|
|
System.err.println("Done sending");
|
|
|
|
try { Thread.sleep(120*1000); } catch (Exception e) {}
|
|
|
|
//System.exit(0);
|
|
|
|
}
|
|
|
|
}
|