Package net.i2p.sam.client

Demo and test client classes.

See:
          Description

Interface Summary
SAMReader.SAMClientEventListener Async event notification interface for SAM clients
 

Class Summary
SAMClientEventListenerImpl Basic noop client event listener
SAMEventHandler Simple helper implementation of a the SAMClientEventListener
SAMReader Read from a socket, producing events for any SAM message read
SAMStreamSend Send a file to a peer Usage: SAMStreamSend samHost samPort peerDestFile dataFile
SAMStreamSink Sit around on a SAM destination, receiving lots of data and writing it to disk Usage: SAMStreamSink samHost samPort myKeyFile sinkDir
 

Package net.i2p.sam.client Description

Demo and test client classes. But if you are writing a Java app, you should probably be using native I2CP, not SAM.

SAMClientEventListenerImpl, SAMEventHandler, and SAMReader are a SAM client API in Java, useful for event based streaming (or for testing the SAM bridge).

SAMStreamSink and SAMStreamSend are a pair of SAM demo apps mirroring the streaming lib's StreamSink and StreamSend demo apps for transferring files.