Changeset ec46079


Ignore:
Timestamp:
Dec 11, 2011 1:27:52 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
caada2b
Parents:
50e3cdb
Message:
  • PortMapper?: New service for registering application ports in the context
Location:
core/java/src/net/i2p
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/I2PAppContext.java

    r50e3cdb rec46079  
    3535import net.i2p.util.LogManager;
    3636//import net.i2p.util.PooledRandomSource;
     37import net.i2p.util.PortMapper;
    3738import net.i2p.util.RandomSource;
    3839import net.i2p.util.SecureDirectory;
     
    8687    private KeyGenerator _keyGenerator;
    8788    protected KeyRing _keyRing; // overridden in RouterContext
     89    private final PortMapper _portMapper;
    8890    private volatile boolean _statManagerInitialized;
    8991    private volatile boolean _sessionKeyManagerInitialized;
     
    201203        _shutdownTasks = new ConcurrentHashSet(32);
    202204        initializeDirs();
     205        _portMapper = new PortMapper(this);
    203206    }
    204207   
     
    911914        return System.getProperty("wrapper.version") != null;
    912915    }
     916
     917    /**
     918     *  Basic mapping from service names to ports
     919     *  @since 0.8.12
     920     */
     921    public PortMapper portMapper() {
     922        return _portMapper;
     923    }
    913924}
Note: See TracChangeset for help on using the changeset viewer.