求一个C++或者C#能在windows下或者linux下直接运行的程序,能实现多人聊天的服务器且简单的加密。
很简单的就好,作业要求如下:Step1:UserAestablishesaTCPconnectionwithUserB.(用户A建立TCP连接用户B)Step2:User...
很简单的就好,作业要求如下:
Step 1: User A establishes a TCP connection with User B. (用户A建立TCP连接用户B)
Step 2: User A sends his/her user name to User B.(用户A发送名字给用户B)
Step 3: User B accepts the request, and sends a confirmation to User A.(B接受请求,发送确认信息)
Step 4: After identity verification, User A and B start to exchange the encrypted
messages by using their predefined secret key. All the conversations (decrypted
messages) should be recorded in a log file.(AB在之前就定义好的“钥匙”前提下,交换已加密的信息,所有解密的对话要存在一个文档中)
Step 6: To terminate the chat, both sides can use a command called “Bye” to terminate
the communications.(发送bye结束)
大概就是这样的,尽量能满足要求就好,要求很低低的,急......... 能找到这样的源代码的话,奖励多少分都可以~~~~~ 展开
Step 1: User A establishes a TCP connection with User B. (用户A建立TCP连接用户B)
Step 2: User A sends his/her user name to User B.(用户A发送名字给用户B)
Step 3: User B accepts the request, and sends a confirmation to User A.(B接受请求,发送确认信息)
Step 4: After identity verification, User A and B start to exchange the encrypted
messages by using their predefined secret key. All the conversations (decrypted
messages) should be recorded in a log file.(AB在之前就定义好的“钥匙”前提下,交换已加密的信息,所有解密的对话要存在一个文档中)
Step 6: To terminate the chat, both sides can use a command called “Bye” to terminate
the communications.(发送bye结束)
大概就是这样的,尽量能满足要求就好,要求很低低的,急......... 能找到这样的源代码的话,奖励多少分都可以~~~~~ 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询