简体   繁体   English

Qt Android通过UDP通信

[英]Qt android communication through UDP

i am working on an app that will send a simple string through wifi from one android phone to another. 我正在开发一个应用程序,它将通过wifi将一个简单的字符串从一个Android手机发送到另一个。 I've started building it through UDP sockets but my question is.. qt supports already the wifi? 我已经开始通过UDP套接字构建它,但是我的问题是.. qt已经支持wifi了吗? or i have to put it in the application? 还是我必须将其放入应用程序中? because i did some research but couldn't find a related answer. 因为我做了一些研究,但是找不到相关的答案。

Qt doesn't differentiate between networking interfaces here. Qt在这里没有区分网络接口。 It opens sockets in a generic way, and the operating system's networking stack determines how to route the packets through interfaces. 它以通用方式打开套接字,操作系统的网络堆栈确定如何通过接口路由数据包。 WiFi is not special in any way, and doesn't require explicit support from Qt. WiFi一点也不特别,不需要Qt的明确支持。

TL;DR: What's so special about WiFi? TL; DR:WiFi有什么特别之处?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM