我正在开发一个 P2P 应用程序,我需要让它使用 UPnP 通过 NAT 路由器/防火墙进行通信.但是,.NET Framework 似乎不包括对 UPnP 的支持.
是否有适用于 .NET 的 UPnP 库?C# 还是 VB.NET?
更新:此后我发现了 NATUPnP 1.0 类型库 (NATUPNP.DLL) COM 组件,它是 Windows(自 Windows XP 起)的一部分,它允许您使用 UPnP 轻松设置/维护端口转发.
我在这里写了一篇带有代码示例的文章:.NET Framework:通过 UPnP(通用即插即用)通过 NAT 路由器进行通信)
解决方案有一个很容易访问的 COM 库:
UPnP API 目的
UPnP™ 框架支持动态智能家电联网,无线设备和 PC.有两个用于工作的 APIUPnP 认证设备:
控制点 API,包括一组 COM 接口,用于查找和控制设备.设备Host API,由一组用于实现的 COM 接口由计算机托管的设备.
I'm working on a P2P application, and I need to get it to communicate through NAT Routers / Firewalls using UPnP. However, it doesn't seem that the .NET Framework includes support for UPnP.
Is there a UPnP Library for .NET? C# or VB.NET?
UPDATE: I have since found the NATUPnP 1.0 Type Library (NATUPNP.DLL) COM Component that is part of Windows (since Windows XP) that allows you to easily setup/maintain Port Forwarding using UPnP.
I wrote an article with code samples here: .NET Framework: Communicate through NAT Router via UPnP (Universal Plug and Play)
解决方案There is a COM library that's easy enough to access:
UPnP APIs Purpose
The UPnP™ framework enables dynamic networking of intelligent appliances, wireless devices, and PCs. There are two APIs for working with UPnP-certified devices:
The Control Point API, which consists of a set of COM interfaces used to find and control devices. The Device Host API, which consists of a set of COM interfaces used to implement devices that are hosted by a computer.
更多推荐
是否有适用于 .NET(C# 或 VB.NET)的 UPnP 库?
发布评论