是否有适用于 .NET(C# 或 VB.NET)的 UPnP 库?

编程入门 行业动态 更新时间:2024-10-28 00:27:41
本文介绍了是否有适用于 .NET(C# 或 VB.NET)的 UPnP 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在开发一个 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 库?

本文发布于:2023-11-08 02:35:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1568086.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:适用于   NET   UPnP   VB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!