|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.client.streaming.StreamSinkSend
public class StreamSinkSend
Simple streaming lib test app that connects to a given destination and sends
the contents of a file, then disconnects. See the main(java.lang.String[])
Constructor Summary | |
---|---|
StreamSinkSend(java.lang.String filename,
int writeDelayMs,
java.lang.String serverDestFile)
Build the client but don't fire it up. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Fire up the client. |
void |
runClient()
Actually connect and run the client - this call blocks until completion. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamSinkSend(java.lang.String filename, int writeDelayMs, java.lang.String serverDestFile)
filename
- file to sendwriteDelayMs
- how long to wait between each .write (0 for no delay)serverDestFile
- file containing the StreamSinkServer's binary DestinationMethod Detail |
---|
public void runClient()
public static void main(java.lang.String[] args)
Usage: StreamSinkClient sendFile writeDelayMs serverDestFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |