use the socketManager's new setName function (to let us log more easily)

This commit is contained in:
jrandom
2004-06-28 13:23:24 +00:00
committed by zzz
parent 72727dacd8
commit d3f3f3bdf7
2 changed files with 4 additions and 1 deletions

View File

@ -113,7 +113,9 @@ public abstract class I2PTunnelClientBase extends I2PTunnelTask implements Runna
protected static I2PSocketManager buildSocketManager() {
Properties props = new Properties();
props.putAll(System.getProperties());
return I2PSocketManagerFactory.createManager(I2PTunnel.host, Integer.parseInt(I2PTunnel.port), props);
I2PSocketManager sockManager = I2PSocketManagerFactory.createManager(I2PTunnel.host, Integer.parseInt(I2PTunnel.port), props);
sockManager.setName("Client");
return sockManager;
}
public final int getLocalPort() {

View File

@ -79,6 +79,7 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable {
props);
}
sockMgr.setName("Server");
l.log("Ready!");
notifyEvent("openServerResult", "ok");
open = true;