Packages that use ForwardPort
Package
Description
Transport framework: the transport lifecycle and pool management, connection handling and bandwidth throttling for the transports (NTCP2 over TCP, SSU over UDP) that carry I2P messages between routers, plus NAT traversal via UPnP and GeoIP country lookups.
Glue classes imported from the Freenet project so
UPnP can drive the Cybergarage UPnP library.Uses of ForwardPort in net.i2p.router.transport
Subclasses of ForwardPort in net.i2p.router.transportModifier and TypeClassDescription(package private) static classIPv6-specific port forwarding configuration.Fields in net.i2p.router.transport with type parameters of type ForwardPortModifier and TypeFieldDescriptionprivate final Set<ForwardPort> UPnP.portsForwardedList of ports we have actually forwarded.private final Set<ForwardPort> UPnP.portsToForwardList of ports we want to forward.private final Set<ForwardPort> UPnP.RegisterPortsThread.portsToForwardNowThe ports to add mappings for.private final Set<ForwardPort> UPnP.UnregisterPortsThread.portsToForwardNowThe mappings to remove.Methods in net.i2p.router.transport with parameters of type ForwardPortModifier and TypeMethodDescriptionprivate booleanUPnP.addMapping(String protocol, int port, String description, ForwardPort fp) This always requests that the external port == the internal port, for now.private booleanUPnP.addMappingV4(Service service, String protocol, int port, String description, ForwardPort fp) This always requests that the external port == the internal port, for now.private booleanUPnP.removeMapping(String protocol, int port, ForwardPort fp, boolean noLog) Removes a mapping through the matching NAT service, blocking on the action.private booleanUPnP.removeMappingV4(Service service, String protocol, int port, ForwardPort fp, boolean noLog) Removes an IPv4 port mapping.private booleanUPnP.tryAddMapping(String protocol, int port, String description, ForwardPort fp) Tries one port mapping on the service.Method parameters in net.i2p.router.transport with type arguments of type ForwardPortModifier and TypeMethodDescriptionprivate voidUPnPManager.UPnPCallback.locked_PFS(Map<ForwardPort, ForwardPortStatus> statuses) Logs the port forwarding results, lock held.voidUPnP.onChangePublicPorts(Set<ForwardPort> ports, ForwardPortCallback cb) Registers a callback when the given ports change.voidUPnPManager.UPnPCallback.portForwardStatus(Map<ForwardPort, ForwardPortStatus> statuses) Called to indicate status on one or more forwarded ports.private voidUPnP.registerPorts(Set<ForwardPort> portsToForwardNow) Runs port registration in a background thread; postControlAction() can take many seconds, especially if it's failing, andUPnP.onChangePublicPorts(Set, ForwardPortCallback)may be called from threads we don't want to slow down.private voidUPnP.unregisterPorts(Set<ForwardPort> portsToForwardNow) Runs port unregistration in a background thread; postControlAction() can take many seconds, especially if it's failing, and onChangePublicPorts() may be called from threads we don't want to slow down, so throw this in a thread.Constructor parameters in net.i2p.router.transport with type arguments of type ForwardPortModifierConstructorDescriptionRegisterPortsThread(Set<ForwardPort> ports) Registration thread handling the given ports.UnregisterPortsThread(Set<ForwardPort> ports) Collects the ports this thread is to un-forward.Uses of ForwardPort in org.freenetproject
Method parameters in org.freenetproject with type arguments of type ForwardPortModifier and TypeMethodDescriptionvoidForwardPortCallback.portForwardStatus(Map<ForwardPort, ForwardPortStatus> statuses) Called to indicate status on one or more forwarded ports.