是否有一个的UPnP库.NET(C#或VB.NET)? [英] Is there a UPnP Library for .NET (C# or VB.NET)?

查看:402
本文介绍了是否有一个的UPnP库.NET(C#或VB.NET)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的P2P应用,我需要得到它的使用UPnP通过NAT路由器/防火墙进行通信。但是,它似乎并不认为.NET框架包括支持UPnP。

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.

有没有的UPnP库.NET? C#或VB.NET?

Is there a UPnP Library for .NET? C# or VB.NET?

更新:因为我已经找到了NATUPnP 1.0类型库(NATUPNP.DLL)COM组件,它是Windows的一部分(因为Windows XP),它允许使用UPnP您可以轻松地安装/维护端口转发

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.

我写在这里code样品的一篇文章: .NET框架:通过UPnP(通用即插即用)通过NAT路由器进行通信

I wrote an article with code samples here: .NET Framework: Communicate through NAT Router via UPnP (Universal Plug and Play)

推荐答案

有一个COM库,它是很容易的访问:

There is a COM library that's easy enough to access:

的UPnP的API 目的

UPnP APIs Purpose

通用即插即用™架构实现动态   联网智能家电,   无线设备,和PC。有   两个API与工作   UPnP认证设备:

The UPnP™ framework enables dynamic networking of intelligent appliances, wireless devices, and PCs. There are two APIs for working with UPnP-certified devices:

控制点API ,其中包括   一组COM接口用于的   发现和控制装置。在设备   主机API ,它由一组的   COM接口,用于实现   装置是由一个计算机托管

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.

这篇关于是否有一个的UPnP库.NET(C#或VB.NET)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆