@Singleton public class UpnpPortMapper extends Object implements PortMapper
Constructor and Description |
---|
UpnpPortMapper(UpnpPortMappingServicesRegistrar mappingServicesRegistrar) |
Modifier and Type | Method and Description |
---|---|
void |
mapPort(int port,
String address,
PortMapProtocol protocol,
String mappingDescription)
Map port for incoming connections on network gateway.
|
@Inject public UpnpPortMapper(UpnpPortMappingServicesRegistrar mappingServicesRegistrar)
public void mapPort(int port, String address, PortMapProtocol protocol, String mappingDescription)
PortMapper
mapPort
in interface PortMapper
port
- mapped port;address
- address to which incoming connections will be forwarded (usually address of current computer);protocol
- network protocol, which will be used on mapped port (TCP/UDP);mappingDescription
- description of the mapping, which will be displayed on network gateway device;Copyright © 2016–2021. All rights reserved.