* Ministreaming: Cleanups, deprecation, move demos out of the lib
This commit is contained in:
@ -15,6 +15,7 @@ import net.i2p.util.Log;
|
|||||||
* and pull from a queue populated by various threads (each of whom have their own
|
* and pull from a queue populated by various threads (each of whom have their own
|
||||||
* timeout)
|
* timeout)
|
||||||
*
|
*
|
||||||
|
* @deprecated use I2PServerSocketFull
|
||||||
*/
|
*/
|
||||||
class I2PServerSocketImpl implements I2PServerSocket {
|
class I2PServerSocketImpl implements I2PServerSocket {
|
||||||
private final static Log _log = new Log(I2PServerSocketImpl.class);
|
private final static Log _log = new Log(I2PServerSocketImpl.class);
|
||||||
|
@ -17,6 +17,7 @@ import net.i2p.util.Log;
|
|||||||
/**
|
/**
|
||||||
* Initial stub implementation for the socket
|
* Initial stub implementation for the socket
|
||||||
*
|
*
|
||||||
|
* @deprecated use I2PSocketFull
|
||||||
*/
|
*/
|
||||||
class I2PSocketImpl implements I2PSocket {
|
class I2PSocketImpl implements I2PSocket {
|
||||||
private final static Log _log = new Log(I2PSocketImpl.class);
|
private final static Log _log = new Log(I2PSocketImpl.class);
|
||||||
|
@ -158,12 +158,12 @@ public class I2PSocketManagerFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static I2PSocketManager createManager(I2PSession session, Properties opts, String name) {
|
private static I2PSocketManager createManager(I2PSession session, Properties opts, String name) {
|
||||||
if (false) {
|
//if (false) {
|
||||||
I2PSocketManagerImpl mgr = new I2PSocketManagerImpl();
|
//I2PSocketManagerImpl mgr = new I2PSocketManagerImpl();
|
||||||
mgr.setSession(session);
|
//mgr.setSession(session);
|
||||||
//mgr.setDefaultOptions(new I2PSocketOptions());
|
//mgr.setDefaultOptions(new I2PSocketOptions());
|
||||||
return mgr;
|
//return mgr;
|
||||||
} else {
|
//} else {
|
||||||
String classname = opts.getProperty(PROP_MANAGER, DEFAULT_MANAGER);
|
String classname = opts.getProperty(PROP_MANAGER, DEFAULT_MANAGER);
|
||||||
if (classname != null) {
|
if (classname != null) {
|
||||||
try {
|
try {
|
||||||
@ -190,7 +190,7 @@ public class I2PSocketManagerFactory {
|
|||||||
} else {
|
} else {
|
||||||
throw new IllegalStateException("No manager class specified");
|
throw new IllegalStateException("No manager class specified");
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@ import net.i2p.util.Log;
|
|||||||
* I2PSocketManager, it should not attempt to call I2PSession's setSessionListener
|
* I2PSocketManager, it should not attempt to call I2PSession's setSessionListener
|
||||||
* or receive any messages with its .receiveMessage
|
* or receive any messages with its .receiveMessage
|
||||||
*
|
*
|
||||||
|
* @deprecated use I2PSocketManagerFull
|
||||||
*/
|
*/
|
||||||
class I2PSocketManagerImpl implements I2PSocketManager, I2PSessionListener {
|
class I2PSocketManagerImpl implements I2PSocketManager, I2PSessionListener {
|
||||||
private I2PAppContext _context;
|
private I2PAppContext _context;
|
||||||
|
Reference in New Issue
Block a user