UDP问题 [英] Problem with UDP

查看:47
本文介绍了UDP问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了一些C ++代码,使ESP8266能够与Amazon Echo一起使用。这是FauxmoESP。由于这在我的ESP8266中运行良好,我想在Windows 10 Iot核心的Raspberry上使用它。

I've found some C++ code to enable an ESP8266 to work with Amazon Echo. It is FauxmoESP. Since this works well in my ESP8266, I thought to put the same on a Raspberry with Windows 10 Iot core.

要检测设备,我必须在服务1900上使用UDP监听。但是当我做

To detect the device I have to listen with UDP on service 1900. But when I do

await socket.BindServiceNameAsync(" 1900");

await socket.BindServiceNameAsync("1900");

我得到一个异常"WinRT信息:每个套接字只有一个用法地址(协议/网络地址/端口)通常是允许的。"

I get an exception "WinRT information: Only one usage of each socket address (protocol/network address/port) is normally permitted."

由于我的应用程序的其他代码没有使用此端口,有谁知道,如何解决这个问题?

Since no other code of my app uses this port, does anyone know, how to fix this?

推荐答案

hi

await socket.BindServiceNameAsync(" 1900");

我收到异常"WinRT信息:只有一次使用通常允许每个套接字地址(协议/网络地址/端口)。"

网络发现(SSDP)已经使用Windows端口1900,Windows 10 IoT核心已经用于广告和发现网络k服务

UDP port 1900 already is used by Network Discovery (SSDP) that Windows 10 IoT Core already use for advertisement and discovery of network services

br

Andre

br
Andre


这篇关于UDP问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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