江苏科技信息 ›› 2015, Vol. 32 ›› Issue (30): 58-60.doi: 10.3969/j.issn.1004-7530.2015.30.024

• 论文 • 上一篇    下一篇

基于Linux的聊天室设计

王恒, 张宇   

  1. 南京航空航天大学金城学院自动化系,江苏南京,211156
  • 出版日期:2015-10-25 发布日期:2015-10-25
  • 基金资助:
    2013年南京航空航天大学金城学院教育教学改革研究项目%项目编号2013-Y-04。2014南京航空航天大学金城学院“ARM控制器实用技术”精品课程%项目编号2014-J-05。2015年南京航空航天大学金城学院嵌入式重点实验室建设基金%项目编号20150006。

Design of a Chat Room Based on Linux

Wang Heng, Zhang Yu   

  • Online:2015-10-25 Published:2015-10-25

摘要: 在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.