QT 通过UDP广播获取网络中所有设备ip地址

时间:2020-03-09 10:18:57
【文件属性】:
文件名称:QT 通过UDP广播获取网络中所有设备ip地址
文件大小:856KB
文件格式:RAR
更新时间:2020-03-09 10:18:57
QT UDP 广播 ip地址 本文是QT版本,有时候需要搜索网络中的设备,机器,服务器等,这就要要用到UDP广播的方式,发送广播命令,广播给网络中的每一个主机,该主机搜到广播命令后,立刻发送给请求端自己的设备信息,这里以IP信息为例子。
【文件预览】:
QTDemoUDPBroadcast-csdn
----UDPTestServer()
--------UDPTestServer.pro.user(18KB)
--------UDPTestServer.pro(403B)
--------main.cpp(208B)
--------mainwindow.ui(989B)
--------mainwindow.cpp(3KB)
--------mainwindow.h(743B)
----UDPTestClient()
--------UDPTestClient..user(18KB)
--------UDPTestClient..pro(403B)
--------main.cpp(208B)
--------mainwindow.ui(989B)
--------mainwindow.cpp(3KB)
--------mainwindow.h(691B)
--------UDPTestClient..pro.user(18KB)
----build-UDPTestServer-Desktop_Qt_5_3_MinGW_32bit-Debug()
--------Makefile.Debug(55KB)
--------Makefile.Release(56KB)
--------ui_mainwindow.h(2KB)
--------debug()
--------Makefile(23KB)
--------release()
----build-UDPTestClient-Desktop_Qt_5_3_MinGW_32bit-Debug()
--------Makefile.Debug(56KB)
--------Makefile.Release(56KB)
--------ui_mainwindow.h(2KB)
--------debug()
--------Makefile(23KB)
--------release()

网友评论