Class PortMapper

  • All Implemented Interfaces:
    Handler

    public class PortMapper
    extends SimpleInboundHandler<io.netty.buffer.ByteBuf,​InetSocketAddressWrapper>
    This handler tries to create a port forwarding for the UDP server using different methods (PCP, NAT-PMP, UPnP-IGD, etc.). For this purpose, the individual methods are tried one after one. If all methods fail, the program waits for RETRY_DELAY and then tries all methods again. It never gives up.