Font Size: a A A

Design Of Highly Concurrent LAN Chat System Based On C/S Mode

Posted on:2021-05-05Degree:MasterType:Thesis
Country:ChinaCandidate:L WangFull Text:PDF
GTID:2428330614960289Subject:Optical Engineering
Abstract/Summary:PDF Full Text Request
Nowadays,there are more and more ways of communication between people,and Internet chat has the characteristics of low cost and high real-time,which has become a common form of communication between people.However,with the increase in the number of users,some traditional online chat rooms have been unable to meet the needs of users due to poor performance,so it is of great practical significance to design high concurrent and high performance network chat rooms.High concurrency requires the capacity of the server and high performance requires the response speed of the server.This article analyzes various solutions to improve server performance in detail,compares its advantages and disadvantages and limitations,studies high-concurrency and high-performance software architecture,and applies it to network chat.The main work of this paper is as follows:Firstly,using C/S architecture in the software architecture,the client interface and server program are designed and implemented.The client program uses Qt to design the interface,and the server program is compiled and run under the Linux-ubuntu environment.Secondly,after analyzing the current high-concurrency solutions of multiple servers,the advantages and disadvantages of common chat systems are compared,and their own improvement solutions are proposed for the problems.A server based on TCP long connection,epoll and multi-threading method is designed.Through epoll to monitor a large number of sockets at the same time,greatly saving thread resources.Simultaneously run the server connection module,data transmission module and command parsing module in a multi-threaded manner,so that data transmission and reception and data processing can be performed simultaneously,and the response speed is improved.Thirdly,the system was tested for function and performance.The function realizes the functions of logging in,displaying online list,private chat,group chat and transferring files.In terms of performance,it can meet the requirement of 10,000 users connecting and logging in to the server at the same time,and has a faster response speed.
Keywords/Search Tags:Online chatting, high concurrency, high performance, C/S architecture
PDF Full Text Request
Related items