套接字编程作业 [英] Socket Programming Homework

查看:95
本文介绍了套接字编程作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我是使用C#语言进行套接字编程的新手.我有关于套接字编程的作业.在此作业中,有一个客户端,一台身份验证服务器,一台计算服务器和一台加密服务器.该系统的工作方式如下;

1.客户端请求身份验证服务器进行计算操作(例如:3-1或8/2等)

2.身份验证服务器从加密服务器请求密钥.

3.加密服务器将密钥发送到身份验证服务器,并将相同的密钥发送到计算服务器.

4.然后,身份验证服务器将此密钥添加到计算消息包中.

5.身份验证服务器发送包含计算操作和密钥值的消息包.

6.计算服务器获取此消息包并比较密钥(其中一个来自加密服务器,另一个位于身份验证服务器的消息包中)

7.如果密钥相等,则进行计算,并最终将计算结果发送给客户端.如果密钥不相等,则丢弃所有消息.

Hello friends,

I''m a new beginner to socket programming with C# language. I have a homework about socket programming. In this homework there are one client, one authenticetion server, one computing server and one crypto server. The system is worked as below;

1. Client requests for a computation operation from authentication server (Ex: 3-1 or 8/2 etc)

2. Authentication server ask for a key from crypto server.

3. Crypto server sends a key to authentication server and same key to computation server.

4. Then authentication server adds this key to computation message packet.

5. Authentication server sends message packet which includes both computation operation and key values.

6. Computation server takes this message packet and compare keys(one of them comes from crypto server and other is in the message packet that comes from authentication server)

7. If keys are equal then makes computation and eventually sends result of this computation to client. If the keys are not equal then drop all messages.

推荐答案

好,怎么说?祝您功课顺利.
您知道,这是"快速答案",我们没有提供完整的作业代码.请努力尝试,如果遇到困难,请在此处发布特定问题.
Well, what to say? Good luck with your homework.
You know, this is ''Quick Answer'' we don''t provide complete code for homework. Please try hard yourself and if you''re stuck then post here specific questions.


这篇关于套接字编程作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆