-
c++ socket编程实例(含服务端和客户端及日志写入)
本代码是c++ socket编程实例。包含服务端和客户端代码,可以实现客户端发送消息,服务端接收消息并写入日志。server.cpp为服务端。client.cpp为客户端。首先,需要准备好C++环境。先编译运行server.cpp,显示:“server is start,waiting for client.”表示启动成功。再编译运行client.cpp,这时再看服务端,显示:“Hello, This is client whg”,表示收到客户端发来的消息。
- 2022-04-16 12:24:48下载
- 积分:1
-
基于Qt的局域网聊天系统
应用背景基于Qt的局域网聊天系统,实现了局域网聊天,文件传输,更改字体,保存聊天记录等功能,对于研究Qt,研究局域网通信具有较强学习价值。关键技术udpSocket = new QUdpSocket(this);
port = 45454;
udpSocket->bind(port, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint);
connect(udpSocket, SIGNAL(readyRead()), this, SLOT(processPendingDatagrams()));
sendMessage(NewParticipant);
server = new TcpServer(this);
connect(server, SIGNAL(sendFileName(QString)), this, SLOT(getFileName(QString)));
connect(ui->messageTextEdit, SIGNAL(currentCharFormatChanged(QTextCharFormat)),
this, SLOT(currentFormatChanged(const QTextCharFormat)));
- 2022-01-25 20:19:41下载
- 积分:1
-
它库函数进行了简单的包装
它对bekerly标准socket的库函数进行了简单的包装,使标准函数的调用更加直观。 - It storehouse function has carried on the simple packing to
bekerly the standard socket, causes the normal function the transfer
to be more direct-viewing.
- 2023-01-23 15:00:04下载
- 积分:1
-
一本c#的编程的源码
一本c#的编程的源码-a c# programming source code
- 2023-05-28 19:45:03下载
- 积分:1
-
一个简单的聊天室程序
一个简单的聊天室程序-a simple chat room procedures
- 2022-02-07 18:37:09下载
- 积分:1
-
CGIC第一本完全中文参考手册,根据官方英文翻译而来
CGIC第一本完全中文参考手册,根据官方英文翻译而来-CGIC first complete reference manual in Chinese, according to the official English translation from
- 2022-02-25 02:33:29下载
- 积分:1
-
一个面向GPS开发出来的卫星定位源代码
一个面向GPS开发出来的卫星定位源代码-a development-oriented GPS satellite positioning of the source code
- 2022-07-24 04:25:39下载
- 积分:1
-
pop邮箱检测系统,提供邮箱检测。属于网络编程系列范围
pop邮箱检测系统,提供邮箱检测。属于网络编程系列范围-pop mail detection system to provide mail detection. Belong to the scope of Network Programming Series
- 2022-05-28 08:34:58下载
- 积分:1
-
获取本机ip地址的3种方法。CB4.0编译
获取本机ip地址的3种方法。CB4.0编译-Access to the local ip address three kinds of methods. CB4.0 compiler
- 2023-03-22 18:05:04下载
- 积分:1
-
使用 UDP 的聊天程序
这是一个使用 UDP 的聊天程序。它是使用 Java 的套接字编程。在客户端和服务器通过网络连接可以执行使用此程序的聊天。UDP 是无连接的协议。它将作为数据报数据包发送数据。支持 UDP 套接字的类是 java.net 包中的 DatagramSocket
- 2022-09-22 17:35:02下载
- 积分:1