# Package net.i2p.sam.client

Demo and test client classes.

See: Description

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

- Class Summary
  Class | Description
  --- | ---
  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 | Swiss army knife tester.
  SAMStreamSink | Swiss army knife tester.
  SSLUtil | Utilities for SAM SSL server sockets.

## 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.