登录
首页 » C++ » 基于Qt的聊天室

基于Qt的聊天室

于 2022-02-11 发布 文件大小:550.82 kB
0 87
下载积分: 2 下载次数: 1

代码说明:

创建了QTcpSokcet类的实例后,可以用conncetToHost()与服务器进行连接:  QHostAddress *serverIP = new QHostAddress();  QString ip = serverIPLineEdit->text();  serverIP->setAddress(ip);  int port = 8010;  tcpSocket->connectToHost(*serverIP, port);  如果成功,将返回connected()信号,错误则返回error(QAbstrackSocket::SocketError socketError)信号 连接成功后可发送或接收数据:  发送:qunit64 write(const QByteArray &byteArray),发挥实际发送字节数,出错返回-1  接收:readyRead()信号被发送,在槽函数中编写处理数据代码,为避免错误解析数据,可用bytesAvailable()返回缓存中接收到的字节数。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • greysystem
    该程序是灰色系统预测,可以对宏观经济进行分析,功能很强大,适应性良好,在matlab环境下运行。G(1,1)预测控制,最小二乘法(G(1,1)prediction control)
    2010-10-12 21:33:46下载
    积分:1
  • Get_CS_LBP
    根据harris提供角点,提取角点的cs—LBP值,以提高角点的鲁棒性(Harris corner extraction corner CS-LBP value, in order to improve the robustness of the corner)
    2013-04-26 20:29:00下载
    积分:1
  • DownsamplePointCloud
    VTK里面的对点云进行降采样的程序,可以直接使用。(VTK point cloud inside the down-sampling procedure can be used directly.)
    2021-05-10 01:08:33下载
    积分:1
  • 3路寻迹测试程序
    3路寻迹测试程序 智能小车寻迹程序 红外对管(intelligent; intelligence; brain power; noopsyche dolly; wheelbarrow; handbarrow; sedan; handcart procedure; order; program; software; formality infrared)
    2019-02-18 13:38:28下载
    积分:1
  • MyuzhiwavefilA
    利用MATLAB实现峰值信噪噪比的公式,很好用。精确的验证过 (Using MATLAB to achieve a peak signal-to-noise to noise ratio formula, easy to use. Verified accurate)
    2012-07-23 11:12:02下载
    积分:1
  • matlab1
    牛顿法, 快速解耦法, 。潮流计算在数学上属于多元非线性方程组的求 解问题,在用迭代法求解时涉及到大量的矢量和矩阵运算,因而寻求一个能高效 地处理矩阵运算的语言,将给潮流计算程序的编制带来巨大的方便.(fast flow electric Power flow calculation is mathematically the solution of multivariate nonlinear equations. Solving the problem involves a large number of vector and matrix operations when solving the iterative method, thus seeking a highly efficient solution. The language of matrix operation will bring great convenience to the compilation of power flow calculation program.)
    2018-05-05 10:54:49下载
    积分:1
  • Line_1901
    2019中鸣超级轨迹赛巡线用,是中鸣机器人的程序,E3RCU控制器。(Zhongming Super Track Tour in 2019 is the program of Zhongming Robot and E3RCU controller.)
    2019-04-18 22:41:04下载
    积分:1
  • 新狂神登录器密码
    说明:  新狂神魔界登录器密码是1只有一个文件上任务的(Magic World Single Machine)
    2020-06-23 01:40:01下载
    积分:1
  • 四元数更新在matlab中的实现,包括采样、更新四元数、规范化、得到姿态角
    捷联式惯性导航系统,使用四元数姿态更新算法在matlab软件仿真平台中的实现,包括采样、更新四元数、规范化、得到姿态角,这些转化还存在误差的影响,还需要使用Kalman滤波对得到的误差进行补偿校正,使得姿态误差更加小,精度更高。
    2022-04-25 10:37:24下载
    积分:1
  • RS232
    rs232收发程序matlab (rs232 transceiver procedures matlab)
    2014-10-23 09:58:45下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载