source: apps/ministreaming/java/src/net/i2p/client/streaming/package.html @ c5b289f

Last change on this file since c5b289f was c5b289f, checked in by zzz <zzz@…>, 16 years ago

javadoc fixes

  • Property mode set to 100644
File size: 1.4 KB
2<p>Implements a TCP-like (reliable, authenticated, in order) set of sockets for
3communicating over the IP-like (unreliable, unauthenticated, unordered) I2P
6<p>When an application wants to use streams, it must fetch an {@link
7net.i2p.client.streaming.I2PSocketManager} from the {@link
8net.i2p.client.streaming.I2PSocketManagerFactory}, which in turn builds its own
9{@link net.i2p.client.I2PSession} internally.  All communication over that
10{@link net.i2p.client.I2PSession} is handled by the {@link
11net.i2p.client.streaming.I2PSocketManager}, as it imposes its own formatting on
12the raw messages sent and received.  If an application wants to receive streams
13from other clients on the network, it should access the blocking {@link
14net.i2p.client.streaming.I2PServerSocket#accept} method, which will provide an
15{@link net.i2p.client.streaming.I2PSocket} when a new one is available.  If an
16application wants to create a new stream to a peer, it should do so with the
17appropriate {@link net.i2p.client.streaming.I2PSocketManager#connect} call.</p>
19<p>There is a simple pair of demo applications available as well - {@link
20net.i2p.client.streaming.StreamSinkServer} listens to a destination and dumps
21the data from all sockets it accepts to individual files, while {@link
22net.i2p.client.streaming.StreamSinkClient} connects to a particular destination
23and sends a specific amount of random data then disconnects.</p>
Note: See TracBrowser for help on using the repository browser.