feat: QUdpSocket
QUdpSocket 网络套接字的使用: <1> unicast(单播) <2> broadcast(广播) <3> multicate(组播)的使用
This commit is contained in:
parent
1b18305928
commit
90c8883162
@ -34,6 +34,7 @@ HEADERS += \
|
|||||||
FORMS += \
|
FORMS += \
|
||||||
ExMulticast.ui
|
ExMulticast.ui
|
||||||
|
|
||||||
|
|
||||||
macx {
|
macx {
|
||||||
ICON = images/icon.icns
|
ICON = images/icon.icns
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ ExTrans::ExTrans(QWidget *parent) :
|
|||||||
ui(new Ui::ExTrans)
|
ui(new Ui::ExTrans)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
setWindowTitle("Tcp通信:unicast(单播) + broadcast(广播)的使用");
|
setWindowTitle("Udp通信:unicast(单播) + broadcast(广播)的使用");
|
||||||
|
|
||||||
QString hostName = QHostInfo::localHostName();
|
QString hostName = QHostInfo::localHostName();
|
||||||
QString ip = getLocalIp();
|
QString ip = getLocalIp();
|
||||||
|
Loading…
Reference in New Issue
Block a user