AddPortMapping(
RemoteHost,
ExternalPort,
Protocol,
InternalPort,
InternalClient,
Enabled,
PortMappingDescription,
LeaseDuration);
DeletePortMapping(
RemoteHost,
ExternalPort,
Protocol);
ExternalIPAddress = GetExternalIPAddress();
{
RemoteHost,
ExternalPort,
Protocol,
InternalPort,
InternalClient,
Enabled,
PortMappingDescription,
LeaseDuration} = GetGenericPortMappingEntry(PortMappingIndex);
GetSpecificPortMappingEntry(
RemoteHost,
ExternalPort,
Protocol,
InternalPort,
InternalClient,
Enabled,
PortMappingDescription,
LeaseDuration
);
支持这些操作的服务类型有
1、urn:schemas-upnp-org:service:WANIPConnection:1
2、urn:schemas-upnp-org:service:WANPPPConnection:1
阅读(1925) | 评论(0) | 转发(0) |