UDP多播无法正常工作 [英] UDP multicasting is not working

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

问题描述

我正在创建2人游戏.我正在通过以下链接使用UDP多播:http://code.msdn.microsoft.com/wpapps/Multicast-Sockets-Sample-51190c11.

I am creating an 2 player game. I am using the UDP multicast using this link: http://code.msdn.microsoft.com/wpapps/Multicast-Sockets-Sample-51190c11.

我面临的问题是

1. 2台WP8设备未发送或收听消息(我使用了2台HTC 8X设备)

1. 2 WP8 devices are not sending or listening the messages (I used 2 HTC 8X devices)

2. WP7.1设备还间歇性地发出相同的问题

2. WP7.1 devices are also giving same issues intermittently

因此,多播工作是否存在任何设备级别的限制?或任何其他限制?

So, Are there any device level limitations for multicasting to work? or any other limitations?

推荐答案

通常可以,但是:

In general it works but:

  • (WP8)诺基亚Lumia 920接收多播时出现问题;修复是为了获得操作系统更新(至8.0.10211.204或更高版本).
  • 您需要确保所有设备都连接到同一WiFi接入点.组播仅在本地工作.
  • 您的访问点需要打开DHCP,因此设备会为其分配IP地址.
  • WP8 8.0应用程序具有更大的潜力,因为它提供了更好的监听能力.仅功能(使用7.1应用程序时,您需要进行套接字发送,然后接收单播交易). WP8有一个新的API选项,与Windows应用商店应用程序(Windows.Networking.Sockets)共享相同的套接字. 易于移植到两个平台.
  • The (WP8) Nokia Lumia 920 had a problem receiving multicasts; the fix was to get an OS update (to 8.0.10211.204 or greater).
  • You need to make sure all devices are connected to the same WiFi access point. Multicast only works locally.
  • Your access points needs DHCP turned on, so the devices get IP addresses assigned to them.
  • A WP8 8.0 app has more potential because it offers better listen only capability (with a 7.1 app you need to do a socket send then receive transaction for unicast). WP8 has a new API option, sharing the same Sockets as Windows Store apps (Windows.Networking.Sockets). Easier to port to both platforms.

希望这会有所帮助,
标记

Hope this helps,
Mark


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

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