文件名称:QtTCP服务器客户端
文件大小:3.17MB
文件格式:ZIP
更新时间:2016-05-21 07:17:49
Qt实现的tcp
client_indoor = new client(); client_doorban = new client(); client_ad = new client(); service_indoor = new service(); service_doorban = new service(); service_ad = new service(); tcpserver = new TcpServer(this); tcpserver->set_st_client(client_indoor,client_doorban,client_ad); tcpserver->set_st_service(service_indoor,service_doorban,service_ad); connect(tcpserver,SIGNAL(getData()),this,SLOT(getdata())); connect(ui->pushButton,SIGNAL(clicked()),this,SLOT(updata())); tcpserver->listen(QHostAddress::Any,6666); updata();
【文件预览】:
tcp
----client()
--------client.pro.user(36KB)
--------tcpclient.h(538B)
--------dialog.cpp(1KB)
--------dialog.h(428B)
--------tcpclient.cpp(2KB)
--------main.cpp(185B)
--------Data_Type.h(572B)
--------dialog.ui(9KB)
--------client.pro(396B)
----service-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK____()
--------Makefile.Debug(8KB)
--------Makefile.Release(8KB)
--------ui_dialog.h(27KB)
--------debug()
--------Makefile(7KB)
--------release()
--------vc100.pdb(844KB)
----client-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK____()
--------Makefile.Debug(7KB)
--------Makefile.Release(7KB)
--------ui_dialog.h(10KB)
--------debug()
--------Makefile(7KB)
--------release()
--------vc100.pdb(828KB)
----service()
--------tcpserver.cpp(937B)
--------tcpthread.h(807B)
--------dialog.cpp(3KB)
--------dialog.h(585B)
--------main.cpp(185B)
--------service.pro(437B)
--------Data_Type.h(572B)
--------dialog.ui(25KB)
--------tcpserver.h(689B)
--------service.pro.user(36KB)
--------tcpthread.cpp(2KB)