基于Socket的网络聊天系统的设计与实现  被引量:3

Design and implementation of network chat system based on Socket

在线阅读下载全文

作  者:张玉 贾遂民 郑桂萍 Zhang Yu;Jia Suimin;Zheng Guiping(College of Information Science&Technology,Zhengzhou Normal University,Zhengzhou,Henan 450044,China)

机构地区:[1]郑州师范学院信息科学与技术学院,河南郑州450044

出  处:《计算机时代》2022年第12期93-95,共3页Computer Era

基  金:河南省本科高校青年骨干教师培养计划项目(项目编号:2021GGJS170)。

摘  要:基于C/S架构通过进程间流式Socket通信实现了网络聊天系统,完成了客户端的用户注册与登录、好友管理、多人聊天等功能,将数据流通过Socket连接传输到服务器端处理。通过消息的封装与传送、服务器端对不同类型消息的处理机制,以及网络通讯协议实现了信息的传递机制,在界面层、消息传输层、数据存储层等方面进行了详细的规划设计,开发了简单灵活的网络聊天系统。A web chat system is implemented based on C/S architecture through inter-process streaming Socket communication.On the client side,it completes the functions of user registration and login,buddy management,multiplayer chat,and transmits the data stream to the server side for processing through Socket connection.The message delivery mechanism is realized through message encapsulation and transmission,server-side processing mechanism for different types of messages,and network communication protocols.Detailed planning and design are carried out in the interface layer,message transmission layer,and data storage layer,and then a simple and flexible network chat system is realized.

关 键 词:进程通信 SOCKET 客户端/服务器 通讯协议 

分 类 号:TP393[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象