# wiseChat **Repository Path**: xiaodaoapple_admin/wiseChat ## Basic Information - **Project Name**: wiseChat - **Description**: Qt创建的局域网聊天软件,用户上线和下线动态添加图标。 软件支持局域网聊天和传输文件 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-03-30 - **Last Updated**: 2022-08-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # wiseChat :stuck_out_tongue: can chat or transfer file in LAN wiseChat use QUdpSocket to transfer chat words ,use QTcpSocket to transfer file. All the PORT and upd message define in global.h such as: #define SENDLOCAL 0 //发送本机信息UDP报文 #define SENDCLOSE 1 //退出时发送本机信息报文 #define UDP_PORT 5555 //udp报文 端口号 #define TCP_PORT 6666 //tcp端口接听 /* 以下为UDP报文头设计 用户上线,用户退出,用户在线,发出消息,收到消息 */ #define WC_USER_ENTRY 1100 // WC_USER_ENTRY#计算机名#计算机MAC#计算机IP #define WC_USER_EXIT 1101 //WC_USER_EXIT#计算名#计算机MAC#计算机IP #define WC_USER_ONLINE 1102 //WC_USER_ONLINE#计算名#计算机MAC#计算机IP #define WC_SENDMSG 1103 //WC_SENDMSG#发消息的IP#消息时间#消息内容 #define WC_RECVMSG 1104 //WC_SENDFILE#发消息的IP#文件名称 #define WC_SENDFILE 1105 //WC_REFUSE#发消息的IP 拒绝接收文件 #define WC_REFUSE 1106 软件截图如下: ![输入图片说明](https://images.gitee.com/uploads/images/2020/0330/201739_3b5fba51_1594121.png "捕获.PNG")