forked from I2P_Developers/i2p.i2p
javadoc fixes part 1 (ticket #1894)
This commit is contained in:
@@ -47,7 +47,7 @@ public interface I2PClient {
|
||||
public static final SigType DEFAULT_SIGTYPE = SigType.DSA_SHA1;
|
||||
|
||||
/**
|
||||
* For router->client payloads.
|
||||
* For router->client payloads.
|
||||
*
|
||||
* If false, the router will send the MessageStatus,
|
||||
* the client must respond with a ReceiveMessageBegin,
|
||||
|
||||
@@ -73,7 +73,7 @@ public interface I2PSession {
|
||||
* End-to-End Crypto is disabled, tags and keys are ignored!
|
||||
*
|
||||
* Like sendMessage above, except the key used and the tags sent are exposed to the
|
||||
* application. <p />
|
||||
* application. <p>
|
||||
*
|
||||
* If some application layer message delivery confirmation is used,
|
||||
* rather than i2p's (slow) built in confirmation via guaranteed delivery mode, the
|
||||
@@ -331,7 +331,7 @@ public interface I2PSession {
|
||||
* Suggested implementation:
|
||||
*
|
||||
*<pre>
|
||||
* if (name.length() == 60 && name.toLowerCase(Locale.US).endsWith(".b32.i2p")) {
|
||||
* if (name.length() == 60 && name.toLowerCase(Locale.US).endsWith(".b32.i2p")) {
|
||||
* if (session != null)
|
||||
* return session.lookup(Hash.create(Base32.decode(name.toLowerCase(Locale.US).substring(0, 52))));
|
||||
* else
|
||||
|
||||
@@ -27,7 +27,7 @@ import net.i2p.data.i2cp.SetDateMessage;
|
||||
* @author jrandom
|
||||
*/
|
||||
class I2PClientMessageHandlerMap {
|
||||
/** map of message type id --> I2CPMessageHandler */
|
||||
/** map of message type id --> I2CPMessageHandler */
|
||||
protected I2CPMessageHandler _handlers[];
|
||||
|
||||
/** for extension */
|
||||
|
||||
@@ -124,7 +124,7 @@ public abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2
|
||||
|
||||
/** class that generates new messages */
|
||||
protected final I2CPMessageProducer _producer;
|
||||
/** map of Long --> MessagePayloadMessage */
|
||||
/** map of Long --> MessagePayloadMessage */
|
||||
protected Map<Long, MessagePayloadMessage> _availableMessages;
|
||||
|
||||
/** hashes of lookups we are waiting for */
|
||||
|
||||
@@ -34,17 +34,17 @@ import net.i2p.util.Log;
|
||||
* Therefore the compatibility situation is as follows:
|
||||
*
|
||||
* Compatibility:
|
||||
* old streaming -> new streaming: sends proto anything, rcvs proto anything
|
||||
* new streaming -> old streaming: sends PROTO_STREAMING, ignores rcvd proto
|
||||
* old datagram -> new datagram: sends proto anything, rcvs proto anything
|
||||
* new datagram -> old datagram: sends PROTO_DATAGRAM, ignores rcvd proto
|
||||
* old streaming -> new streaming: sends proto anything, rcvs proto anything
|
||||
* new streaming -> old streaming: sends PROTO_STREAMING, ignores rcvd proto
|
||||
* old datagram -> new datagram: sends proto anything, rcvs proto anything
|
||||
* new datagram -> old datagram: sends PROTO_DATAGRAM, ignores rcvd proto
|
||||
* In all the above cases, streaming and datagram receive traffic for the other
|
||||
* protocol, same as before.
|
||||
*
|
||||
* old datagram -> new muxed: doesn't work because the old sends proto 0 but the udp side
|
||||
* old datagram -> new muxed: doesn't work because the old sends proto 0 but the udp side
|
||||
* of the mux registers with PROTO_DATAGRAM, so the datagrams
|
||||
* go to the streaming side, same as before.
|
||||
* old streaming -> new muxed: works
|
||||
* old streaming -> new muxed: works
|
||||
*
|
||||
* Typical Usage:
|
||||
* Streaming + datagrams:
|
||||
@@ -421,7 +421,7 @@ class I2PSessionMuxedImpl extends I2PSessionImpl2 {
|
||||
/**
|
||||
* No, we couldn't put any protocol byte in front of everything and
|
||||
* keep backward compatibility. But there are several bytes that
|
||||
* are unused AND unchecked in the gzip header in releases <= 0.7.
|
||||
* are unused AND unchecked in the gzip header in releases <= 0.7.
|
||||
* So let's use 5 of them for a protocol and two 2-byte ports.
|
||||
*
|
||||
* Following are all the methods to hide the
|
||||
|
||||
Reference in New Issue
Block a user