江苏科技信息 ›› 2015, Vol. 32 ›› Issue (30): 58-60.doi: 10.3969/j.issn.1004-7530.2015.30.024
• 论文 • 上一篇 下一篇
王恒, 张宇
出版日期:
发布日期:
基金资助:
Wang Heng, Zhang Yu
Online:
Published:
摘要: 在Linux系统下编写聊天室的底层程序,聊天室采用C/S架构,用TCP进行网络通信的时候,采用流套接字建立虚拟连接实现多线程操作。该聊天室底层程序可以方便地移植到其他嵌入式操作系统。文章对这一设计进行了阐述。
关键词: 流套接字, 多线程, 聊天室, Linux
Abstract: The study designed a chat room bottom interface program based on Linux system. The Client/Server architecture was adopted in this chat room interface,the C/S communication was achieved by TCP,and the multithreading operation was obtained by virtual connection based on stream socket technology. This chat room bottom interface program can be transplanted to other embedded system easily.The design is described in this paper.
王恒, 张宇. 基于Linux的聊天室设计[J]. 江苏科技信息, 2015, 32(30): 58-60.
0 / / 推荐
导出引用管理器 EndNote|Reference Manager|ProCite|BibTeX|RefWorks
链接本文: https://qkcb.jssti.cn/jskj/CN/10.3969/j.issn.1004-7530.2015.30.024
https://qkcb.jssti.cn/jskj/CN/Y2015/V32/I30/58