Chinaunix首页 | 论坛 | 博客
  • 博客访问: 905714
  • 博文数量: 201
  • 博客积分: 8078
  • 博客等级: 中将
  • 技术积分: 2162
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-20 17:22
文章分类

全部博文(201)

文章存档

2013年(3)

2012年(11)

2011年(34)

2010年(25)

2009年(51)

2008年(77)

分类: WINDOWS

2011-08-04 01:28:07

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

阅读(1859) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~