forked from I2P_Developers/i2p.i2p
* Streaming: Move streaming to new package (ticket #1135)
This commit is contained in:
@@ -16,11 +16,11 @@ import java.nio.channels.SelectableChannel;
|
||||
*/
|
||||
public abstract class AcceptingChannel extends SelectableChannel {
|
||||
|
||||
abstract I2PSocket accept() throws I2PException, ConnectException;
|
||||
public abstract I2PSocket accept() throws I2PException, ConnectException;
|
||||
|
||||
protected final I2PSocketManager _socketManager;
|
||||
|
||||
AcceptingChannel(I2PSocketManager manager) {
|
||||
protected AcceptingChannel(I2PSocketManager manager) {
|
||||
this._socketManager = manager;
|
||||
}
|
||||
}
|
||||
|
@@ -25,7 +25,7 @@ import net.i2p.util.Log;
|
||||
public class I2PSocketManagerFactory {
|
||||
|
||||
public static final String PROP_MANAGER = "i2p.streaming.manager";
|
||||
public static final String DEFAULT_MANAGER = "net.i2p.client.streaming.I2PSocketManagerFull";
|
||||
public static final String DEFAULT_MANAGER = "net.i2p.client.streaming.impl.I2PSocketManagerFull";
|
||||
|
||||
/**
|
||||
* Create a socket manager using a brand new destination connected to the
|
||||
|
@@ -6,7 +6,7 @@ import java.util.Properties;
|
||||
* Define the configuration for streaming and verifying data on the socket.
|
||||
* Use I2PSocketManager.buildOptions() to get one of these.
|
||||
*/
|
||||
class I2PSocketOptionsImpl implements I2PSocketOptions {
|
||||
public class I2PSocketOptionsImpl implements I2PSocketOptions {
|
||||
private long _connectTimeout;
|
||||
private long _readTimeout;
|
||||
private long _writeTimeout;
|
||||
@@ -93,7 +93,7 @@ class I2PSocketOptionsImpl implements I2PSocketOptions {
|
||||
}
|
||||
}
|
||||
|
||||
protected static double getDouble(Properties opts, String name, double defaultVal) {
|
||||
public static double getDouble(Properties opts, String name, double defaultVal) {
|
||||
if (opts == null) return defaultVal;
|
||||
String val = opts.getProperty(name);
|
||||
if (val == null) {
|
||||
|
Reference in New Issue
Block a user