【delphi开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。
网学会员整理了delphi开源代码-【优秀毕业设计】基于linux下网络聊天室 - 毕业设计的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
完整 设计 Linux 下网络聊天室 林仁明 计算机学院通信工程专业 2008 级 C/S 结合的结构,客户端与客户端以及客户端与服务器端之间通过基于 TCP/IP 协议 Socket 套接口传送消息。
服务器设计与实现过程中采用了多线程技术,可以在单个程序当中同时运行多个不同的线程执行不同的任务。
大大增强了程序对服务器资源的利用。
在 Linux 下编写并调试服务器端程序和客户端程序,实现了客户、服务器之间的连接和通信。
可以在单机上开辟两个窗口实现客户端和服务器,或者两台主机链接分别作为客户端和服务器。
总体来说,此
设计以嵌入式 C 语言为开发语言,使用网络套接字 socket 建立连接,并运行多线程实现数据交换,程序经 GCC 调试成功,可以在单机网络中使用。
关键字:TCP/IP;linux;socket Design and Implementation of Internet chat rooms under Linux Linren MingOf Computer Science Communication Engineering 2008 Instructor: Yue MiaoAbstract: This system uses a combination of C / S structure between the client andthe client and customer client and server-side through the TCP / IP protocol-basedSocket sets of interfaces to deliver messages. Used in server design andimplementation of multi-threading technology in a single program which is runninga number of different threads to perform different tasks. Greatly enhanced theprogram on the use of server resources. To write and debug server-side program andclient program under Linux the connection between the client server andcommunications. Two windows can be opened up on a stand-alone client and serveror the two hosts links respectively as the client and server. Overall this designembedded C language for the development of language the use of network socketssocket connection is established and run multi-threaded data exchange program GCCdebugging can be used in stand-alone network.Key
words: TCP / IP the linux the socke 目录摘要.......................................................................................................................................................... 1Abstract .................................................................................................................................................... 1第一章:绪论 ......................................................................................................................................... 3 1.1 什么是网络编程 ..................................................................................................................... 3 1.2 优点 .......................................................................................................................................... 3第二章 linux 网络聊天室设计思想 .................................................................................................. 4 2.1 功能分析.................................................................................................................................. 4 2.2 总体设计.................................................................................................................................. 4第三章 linux 网络聊天室工具概述 .................................................................................................. 5 3.1 GCC ......................................................................................................................................... 5 3.1.1 GCC 简介 ...................................................................................................................... 5 3.1.2 GCC 执行过程 .............................................................................................................. 5 3.1.3 GCC 基本使用方法...................................................................................................... 5 3.2 GNU M