Welcome![Sign In][Sign Up]
Location:
Search - client server communication using threads

Search list

[Internet-NetworkNamePipe

Description: 做多客户端与服务器端的双向通信,采用QLocalSocket/QLocalServer实现起来简单,但通信效率太低,客户端发数据,服务器端的readyRead信号延时约100ms(看QT源码,发现里面用的是100ms定时器来检测信号),后来自己照着QLocalSocket的思路封装了windows的命名管道,采用多线程来接收数据,在本机上测试通过,通信效率有明显改善。-To do more client and server-side two-way communication, using QLocalSocket/QLocalServer to achieve them simple, but the communication efficiency is too low, the client made the data, the server-side readyRead the signal delay of about 100ms (see QT source code found inside using a 100ms timer device to detect the signal), and later their shining QLocalSocket encapsulates the idea of windows named pipes, using multiple threads to receive data, tested on this machine, the communication efficiency has clearly improved.
Platform: | Size: 18537472 | Author: 刘明芬 | Hits:

[Internet-NetworkSOCKET

Description: 用socket编程实现客户端和服务器的编程,采用线程实现实时通信-Socket programming with client and server programming, using threads to achieve real-time communication
Platform: | Size: 2429952 | Author: james | Hits:

[JSP/Javaqddown_java8543535625

Description: 服务器与客户间通过套接口Socket(TCP)连接。在java中使用套接口相当简单,Java API为处理套接口的通信提供了一个类java.net.Socket.,使得编写网络应用程序相对容易.服务器采用多线程以满足多用户的请求,通过JDBC与后台数据库连接,并通过创建一个ServerSocket对象来监听来自客户的连接请求,默认端口为8080,然后无限循环调用accept()方法接受客户程序的连接-Between server and client through the socket Socket (TCP) connection. In java using sockets is quite simple, Java API for handling the communication socket to provide a class java.net.Socket., To make writing Web applications easier. Server uses multiple threads to meet the multi-user s request, and back through the JDBC database connection, and by creating a ServerSocket object to listen for connection requests from clients, the default port is 8080, then an infinite loop calling accept () method to accept client program link
Platform: | Size: 903168 | Author: yessky | Hits:

[Linux-UnixQQlinux

Description: linux下简单QQ程序,用socket通信实现,通过建立两个线程实现数据的发送与接收,包括服务端和客户端程序-QQ linux in the simple procedure, using socket communication to achieve, through the creation of two threads to send and receive data, including server and client
Platform: | Size: 1024 | Author: 张文惠 | Hits:

CodeBus www.codebus.net