资源简介

qt编写的网络通信程序,可实现客户端与服务端的简单通信,客户端可随意设置用户名、ip和端口号,并接受来自服务端的数据。经过本人亲身体验,该程序可作为网络调试工具,也可以稍加改动,变成自己的小项目。不懂的请联系QQ853298070

资源截图

代码片段和文件信息

#include “tcpclient.h“
#include 


int main( int argc char **argv )
{
    
    QApplication a( argc argv );
    QTranslator translator(0);
    translator.load(“tcpclient_zh““.“);
    a.installTranslator(&translator);    
    
    TcpClient *tcpclient = new TcpClient();
    tcpclient->show();
    return a.exec();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        334  2008-04-20 15:28  Qtclient_server\client\main.cpp

     文件       8017  2008-05-12 17:28  Qtclient_server\client\Makefile

     文件       5401  2008-05-12 17:28  Qtclient_server\client\Makefile.Release

     文件      41220  2008-05-12 17:28  Qtclient_server\client\tcpclient

     文件       4045  2014-04-25 13:13  Qtclient_server\client\tcpclient.cpp

     文件      48640  2008-05-12 17:28  Qtclient_server\client\tcpclient.exe

     文件        771  2008-04-20 15:25  Qtclient_server\client\tcpclient.h

     文件        202  2008-05-10 18:31  Qtclient_server\client\tcpclient.pro

     文件      17720  2014-04-25 11:22  Qtclient_server\client\tcpclient.pro.user

     文件       3065  2014-03-26 10:27  Qtclient_server\client\tcpclient.pro.user.0537566

     文件        639  2008-03-11 09:57  Qtclient_server\client\tcpclient_zh.qm

     文件       1641  2008-03-11 09:57  Qtclient_server\client\tcpclient_zh.ts

     文件        333  2008-04-20 15:28  Qtclient_server\server\main.cpp

     文件       9208  2008-05-12 17:26  Qtclient_server\server\Makefile

     文件       6882  2008-05-12 17:26  Qtclient_server\server\Makefile.Release

     文件      45173  2008-05-12 17:25  Qtclient_server\server\server

     文件       1114  2008-04-20 15:27  Qtclient_server\server\server.cpp

     文件        446  2008-04-20 15:27  Qtclient_server\server\server.h

     文件        651  2008-04-20 15:26  Qtclient_server\server\tcpclientsocket.cpp

     文件        379  2008-04-20 15:26  Qtclient_server\server\tcpclientsocket.h

     文件      45197  2008-05-12 17:27  Qtclient_server\server\tcpserver

     文件       1292  2008-04-20 15:33  Qtclient_server\server\tcpserver.cpp

     文件      46080  2008-05-12 17:26  Qtclient_server\server\tcpserver.exe

     文件        491  2008-04-20 15:26  Qtclient_server\server\tcpserver.h

     文件        284  2008-05-12 17:25  Qtclient_server\server\tcpserver.pro

     文件      17720  2014-04-25 11:24  Qtclient_server\server\tcpserver.pro.user

     文件      17913  2014-04-06 13:24  Qtclient_server\server\tcpserver.pro.user.0537566

     文件        442  2008-03-05 11:17  Qtclient_server\server\tcpserver_zh.qm

     文件        470  2008-03-05 11:17  Qtclient_server\server\tcpserver_zh.ts

     目录          0  2014-04-25 13:30  Qtclient_server\client

............此处省略5个文件信息

评论

共有 条评论