如何在Android中查找网络的广播地址 [英] How Do I Find The Broadcast Address Of A Network In Android

查看:74
本文介绍了如何在Android中查找网络的广播地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在构建一个客户端服务器架构的小应用程序,我需要将数据包广播到侦听服务器,为此我需要广播地址。

如何在android中找到广播地址?那有什么API吗?我已经搜索了很多但找不到任何有用的东西。



任何帮助都会非常感激。



谢谢

Hi all,
I am building a small application of client server architecture where i need to broadcast packets to the listening servers and for that i need the broadcast address.
How can i find the broadcast address in android??? Is there any API for that?? i have searched alot but could not find anything useful.

Any help would be really appreciated.

Thanks

推荐答案

所有系统中的广播地址都是相同的,没有特定于Android的。请参见 http://en.wikipedia.org/wiki/Broadcast_address [ ^ ]。
A broadcast address is the same in all systems,nothing specific to Android. See http://en.wikipedia.org/wiki/Broadcast_address[^].


这篇关于如何在Android中查找网络的广播地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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