org.lastbamboo.common.ice
Class PortMappedServerPool

java.lang.Object
  extended by org.lastbamboo.common.ice.PortMappedServerPool

public class PortMappedServerPool
extends Object

A pool of servers that have had their ports mapped using either UPnP or NAT PMP. The idea here is to pre-map ports on the router. This may not make sense for all circumstances, however, as some routers might timeout the mappings. Those timeouts would force this code to carefully maintain and re-allocate all mappings.


Constructor Summary
PortMappedServerPool(org.lastbamboo.common.portmapping.NatPmpService natPmpService, org.lastbamboo.common.portmapping.UpnpService upnpService)
           
 
Method Summary
 PortMappedServerSocket getServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortMappedServerPool

public PortMappedServerPool(org.lastbamboo.common.portmapping.NatPmpService natPmpService,
                            org.lastbamboo.common.portmapping.UpnpService upnpService)
Method Detail

getServer

public PortMappedServerSocket getServer()
                                 throws IOException
Throws:
IOException


Copyright © 2013 LittleShoot. All Rights Reserved.