//ex2.pro
QT += core gui
QT += serialport
QT += network
#disableC4819 warning
QMAKE_CXXFLAGS_WARN_ON +=-wd4819
greaterThan(QT_MAJOR_VERSION,4): QT += widgets
CONFIG += c++11#The following define makes your compiler emit warnings if you use#anyQt feature that has been marked deprecated(the exact warnings#dependon your compiler). Please consult the documentation of the#deprecatedAPI in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
#You can also make your code fail to compile if it uses deprecated APIs.#In order to do so, uncomment the following line.#You can also select to disable deprecated APIs only up to a certain version of Qt.#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
main.cpp \
ex2.cpp \
tcpclient.cpp
HEADERS += \
ex2.h \
tcpclient.h
FORMS += \
ex2.ui
#Default rules for deployment.
qnx: target.path =/tmp/$${TARGET}/bin
else: unix:!android: target.path =/opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
题目 拓扑图 一、配置环回和IP地址
R1 < Huawei>sy Enter system view, return user view with CtrlZ. [Huawei]sysname r1 [r1]int g0/0/1 [r1-GigabitEthernet0/0/1]ip add 64.1.1.1 24 Aug 4 2023 18:56:07-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol…