feat: QUdpSocket

QUdpSocket 网络套接字的使用:
<1> unicast(单播)
<2> broadcast(广播)
<3> multicate(组播)的使用
This commit is contained in:
touwoyimuli 2019-12-05 00:07:38 +08:00
parent 1b18305928
commit 90c8883162
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ HEADERS += \
FORMS += \
ExMulticast.ui
macx {
ICON = images/icon.icns
}

View File

@ -29,7 +29,7 @@ ExTrans::ExTrans(QWidget *parent) :
ui(new Ui::ExTrans)
{
ui->setupUi(this);
setWindowTitle("Tcp通信unicast(单播) + broadcast(广播)的使用");
setWindowTitle("Udp通信unicast(单播) + broadcast(广播)的使用");
QString hostName = QHostInfo::localHostName();
QString ip = getLocalIp();