网站大量收购独家精品文档,联系QQ:2885784924

回l个inux下网络聊天工具的设计和实现.doc

  1. 1、本文档共50页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
回l个inux下网络聊天工具的设计和实现

攀枝花学院本科毕业设计(论文) Linux下的网络聊天工具的设计和实现 学生姓名: XXXXXXX 学生学号: XXXXXXXXXXXX 院(系): 数学与计算机学院 年级专业: 09级信息与计算科学 指导教师: XXXXX 硕士助教 二零一三年六月 摘 要 这个毕业论文整体采用在linux平台下,在同一局域网内实现聊天功能。整体框架主要分为服务端和客户端两个部分,设置好ip和端口号,在Linux下编译和调试两主大块程序,实现服务端和各个客户端的连接,然后以服务端作为中继转实现客户端之间的通信。由于服务端只有一个,而客户端可以有任意多个,所以服务端采用了链表来管理多个客户端的信息,客户端的信息发送通过封装在结构体中进行传输。本设计采用TCP/IP协议保证连接可靠,并在项目管理中采用linux流行的gcc和makefile编译,提高了编译和调试效率,加快了项目的完成速度。由于要模拟多个客户端,所以在运行的环境中需要在PC机上再克隆一个虚拟系统来操作多个客户端。 本次设计的聊天工具采用字符串命令行的方式进行通信,主要实现了五个功能:新用户的注册与登录,用户之间一对一的聊天,用户之间群聊,用户之间文件加密传输,用户之间聊天记录保存。经过测试,程序运行可靠,能满足在linux中实现网络聊天的要求。 关键词 linux,socket,gedit,服务端,客户端,网络编程 ABSTRACT This thesis gets the realization of chat in the same LAN under the Linux platform. The overall framework is divided into two parts: server and client. Set up the IP and port number, compile and debug two main bulk programs in the Linux and realize the connection between the server and the clients, and then realize the communication between clients by relying on server. Since there is only a server, but are multiple clients, so the server adopts a linked list to manage multiple clients’ information, and the information of clients is packed into struct to transfer. This design adopts the TCP/IP protocol to ensure reliable connection, and uses the Linux gcc and makefile compiler in project management, which improves the compiling and debugging efficiency, and speeds up the project’ completion. Due to the simulation of multiple clients, so it needs to clone a virtual system in the PC machine to operate multiple clients in the running environment. The chat tool of the design works by using the method of character string command line, which mainly accomplishes five functions: new users’ registration and login, biunique chat between users, users’ group chat, file encryption and transmission between users, users’ chat record retention. After the test, the program is reliable, and can meet the requirements of network chat in Li

文档评论(0)

xiaoxue8 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档