Changeset 57ddc8e for apps/ministreaming


Ignore:
Timestamp:
Aug 25, 2018 2:29:32 PM (23 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
4a03b6fc
Parents:
c3881a8
Message:

conversion cleanup

Location:
apps/ministreaming/java/src/net/i2p/client/streaming
Files:
2 edited

Legend:

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

    rc3881a8 r57ddc8e  
    170170                // but when that's ripped out of EepGet to use setsotimeout, we'll need this.
    171171                Properties props = new Properties();
    172                 props.setProperty(I2PSocketOptions.PROP_CONNECT_TIMEOUT, "" + CONNECT_TIMEOUT);
    173                 props.setProperty(I2PSocketOptions.PROP_READ_TIMEOUT, "" + INACTIVITY_TIMEOUT);
     172                props.setProperty(I2PSocketOptions.PROP_CONNECT_TIMEOUT, Integer.toString(CONNECT_TIMEOUT));
     173                props.setProperty(I2PSocketOptions.PROP_READ_TIMEOUT, Integer.toString(INACTIVITY_TIMEOUT));
    174174                // This is important - even if the underlying socket doesn't have a connect delay,
    175175                // we want to set it for this connection, so the request headers will go out
  • apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketManagerFactory.java

    rc3881a8 r57ddc8e  
    241241            opts.setProperty(I2PClient.PROP_TCP_HOST, i2cpHost);
    242242        if (i2cpPort > 0)
    243             opts.setProperty(I2PClient.PROP_TCP_PORT, "" + i2cpPort);
     243            opts.setProperty(I2PClient.PROP_TCP_PORT, Integer.toString(i2cpPort));
    244244       
    245245        I2PSession session = client.createSession(myPrivateKeyStream, opts);
Note: See TracChangeset for help on using the changeset viewer.