forked from I2P_Developers/i2p.i2p
test javadoc
This commit is contained in:
@@ -26,9 +26,15 @@ import net.i2p.util.Log;
|
|||||||
import net.i2p.util.VersionComparator;
|
import net.i2p.util.VersionComparator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send a file to a peer
|
* Swiss army knife tester.
|
||||||
|
* Sends a file (datafile) to a peer (b64 dest in peerDestFile).
|
||||||
*
|
*
|
||||||
* Usage: SAMStreamSend samHost samPort peerDestFile dataFile
|
* Usage: SAMStreamSend [options] peerDestFile dataFile
|
||||||
|
*
|
||||||
|
* See apps/sam/doc/README-test.txt for info on test setup.
|
||||||
|
* Sends data in one of 5 modes.
|
||||||
|
* Optionally uses SSL.
|
||||||
|
* Configurable SAM client version.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class SAMStreamSend {
|
public class SAMStreamSend {
|
||||||
|
@@ -28,10 +28,16 @@ import net.i2p.util.Log;
|
|||||||
import net.i2p.util.VersionComparator;
|
import net.i2p.util.VersionComparator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sit around on a SAM destination, receiving lots of data and
|
* Swiss army knife tester.
|
||||||
* writing it to disk
|
* Saves our transient b64 destination to myKeyFile where SAMStreamSend can get it.
|
||||||
|
* Saves received data to a file (in sinkDir).
|
||||||
*
|
*
|
||||||
* Usage: SAMStreamSink samHost samPort myKeyFile sinkDir
|
* Usage: SAMStreamSink [options] myKeyFile sinkDir
|
||||||
|
*
|
||||||
|
* See apps/sam/doc/README-test.txt for info on test setup.
|
||||||
|
* Receives data in one of 7 modes.
|
||||||
|
* Optionally uses SSL.
|
||||||
|
* Configurable SAM client version.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class SAMStreamSink {
|
public class SAMStreamSink {
|
||||||
@@ -46,7 +52,6 @@ public class SAMStreamSink {
|
|||||||
private boolean _isV3;
|
private boolean _isV3;
|
||||||
private boolean _isV32;
|
private boolean _isV32;
|
||||||
private String _v3ID;
|
private String _v3ID;
|
||||||
//private boolean _dead;
|
|
||||||
/** Connection id (Integer) to peer (Flooder) */
|
/** Connection id (Integer) to peer (Flooder) */
|
||||||
private final Map<String, Sink> _remotePeers;
|
private final Map<String, Sink> _remotePeers;
|
||||||
private static I2PSSLSocketFactory _sslSocketFactory;
|
private static I2PSSLSocketFactory _sslSocketFactory;
|
||||||
@@ -140,7 +145,6 @@ public class SAMStreamSink {
|
|||||||
public SAMStreamSink(I2PAppContext ctx, String samHost, String samPort, String destFile, String sinkDir) {
|
public SAMStreamSink(I2PAppContext ctx, String samHost, String samPort, String destFile, String sinkDir) {
|
||||||
_context = ctx;
|
_context = ctx;
|
||||||
_log = ctx.logManager().getLog(SAMStreamSink.class);
|
_log = ctx.logManager().getLog(SAMStreamSink.class);
|
||||||
//_dead = false;
|
|
||||||
_samHost = samHost;
|
_samHost = samHost;
|
||||||
_samPort = samPort;
|
_samPort = samPort;
|
||||||
_destFile = destFile;
|
_destFile = destFile;
|
||||||
|
Reference in New Issue
Block a user