Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

只能android设备之间才可以用,我android 设备发送广播,给window应用可以不,如何操作 #5

Open
ILoveLin opened this issue Jun 22, 2021 · 6 comments

Comments

@ILoveLin
Copy link

只能android设备之间才可以用,我android 设备发送广播,给window应用可以不,如何操作

@fighter-lee
Copy link
Owner

建议参考代码中的协议,实现对应的window端程序的协议。

@ILoveLin
Copy link
Author

ILoveLin commented Jul 5, 2021

好的 谢谢

@ILoveLin
Copy link
Author

ILoveLin commented Jul 5, 2021

再请教一个问题,你这个是能实现UDP组播功能吗,
博主,有空写个局域网,UDP组播的Demo呗,

@ILoveLin
Copy link
Author

建议参考代码中的协议,实现对应的window端程序的协议。
这是什么意思呀 我不是很懂,博主,虚心请教下~~~ 我问了PC端使用socket UDP通讯的
意思是说我Adroid这边使用lancomm,他那边不能接收到消息吗,还是说他能接受到,PC端回写过来的数据我接收不到?

@fighter-lee
Copy link
Owner

你可以稍微看下内部的实现,window端只需要代码开启一个UDP接收端服务,就能收到lancomm发过来的消息,无非是window端需要来解析协议,和根据协议组包发送。
当然,你也可以和他约定更多私有协议。毕竟源码都有。

@ILoveLin
Copy link
Author

ILoveLin commented Jan 21, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants