Introduction用c语言写一个多人聊天室,大致要求就是做一个能够实现自由加入和退出的聊天室。 一个人发送信息其他人都能收到,消息发送成功要有个提示。每个人加入和退出也会有提示,前面的英文有举例。多人聊天的时候可以分辨出来那句话是谁发的。Requirementyou will implement a multi-user chat program. In C program please.The Bare MinimumThe minimum requirement is for a central server that can accept two connections.Either client can then type a message, which is then sent to the server. The serverrelays the message to the other client. A sample run of the program might look like thefollowing:> ./chat 127.0.0.1What is your screen name? >> KitCKitC has joined the chat.Linda has joined the chat.>> Hi, Linda. Are we having our meeting later today?[Your Message Has Been Sent]Linda: No. I’m really busy writing our paper anda couple other people have conflicts.>> Okay. Thanks![Your Message Has Been Sent]>> exitKitC has left the chat.This is only an example interface, but shows the minimum requirements of sendingmessages between the clients. A confirmation that your message has been sent by theclient is also a requirement at this level.Level 2 RequirementsIn Level 2, a few more features may be added. In the example above, there werenotifications when a user entered or left the chat. Level 2 code should add this feature.At this level, the server should be able to accept multiple connections | not just two.That means that the server needs to keep track of who sent a message and distributeit to all of the other clients except the one who sent it.Buffet FeaturesIf you have time or interest, you can add any or all of the following features.Private messages between clients (Something like @replies in Twitter)Sending a message to a subset of clientsAdd some pretty formatting to the messages (like colors, line wrapping, etc.)本团队核心人员组成主要包括BAT一线工程师,精通德英语!我们主要业务范围是代做编程大作业、课程设计等等。我们的方向领域:window编程 数值算法 AI人工智能 金融统计 计量分析 大数据 网络编程 WEB编程 通讯编程 游戏编程多媒体linux 外挂编程 程序API图像处理 嵌入式/单片机 数据库编程 控制台 进程与线程 网络安全 汇编语言 硬件编程 软件设计 工程标准规等。其中代写编程、代写程序、代写留学生程序作业语言或工具包括但不限于以下范围:C/C++/C#代写Java代写IT代写Python代写辅导编程作业Matlab代写Haskell代写Processing代写Linux环境搭建Rust代写Data Structure Assginment 数据结构代写MIPS代写Machine Learning 作业 代写Oracle/SQL/PostgreSQL/Pig 数据库代写/代做/辅导Web开发、网站开发、网站作业ASP.NET网站开发Finance Insurace Statistics统计、回归、迭代Prolog代写Computer Computational method代做因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:99515681@qq.com 微信:codehelp
网友评论