Changeset 3622501 for apps/ministreaming


Ignore:
Timestamp:
Feb 2, 2014 4:47:29 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e9b3577
Parents:
b7207fd2
Message:
  • Streaming:
    • Set ports on many packets that were missing them
    • Use connection throttling methods on pings too (ticket #1142)
    • Add methods to set ports on pings
    • Argument checking on ping methods
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketManager.java

    rb7207fd2 r3622501  
    127127     * the timeout specified, false otherwise.  This call blocks.
    128128     *
     129     * Uses the ports from the default options.
     130     *
    129131     * @param peer Destination to ping
    130      * @param timeoutMs timeout in ms
     132     * @param timeoutMs timeout in ms, greater than zero
     133     * @throws IllegalArgumentException
    131134     * @return success or failure
    132135     */
    133136    public boolean ping(Destination peer, long timeoutMs);
     137
     138    /**
     139     * Ping the specified peer, returning true if they replied to the ping within
     140     * the timeout specified, false otherwise.  This call blocks.
     141     *
     142     * Uses the ports specified.
     143     *
     144     * @param peer Destination to ping
     145     * @param localPort 0 - 65535
     146     * @param remotePort 0 - 65535
     147     * @param timeoutMs timeout in ms, greater than zero
     148     * @return success or failure
     149     * @throws IllegalArgumentException
     150     * @since 0.9.12
     151     */
     152    public boolean ping(Destination peer, int localPort, int remotePort, long timeoutMs);
    134153
    135154    public String getName();
Note: See TracChangeset for help on using the changeset viewer.