在远程处理概念中使用代理
我是远程概念(C# Remoting)的新手。实际上我使用了一些项目 远程处理概念,我需要在客户端和服务器之间使用代理,如果客户端 想要与服务器通信,反之亦然,应该通过此代理完成 我只看到了一个命名空间 Remoting.Proxy ,它有帮助吗?有人给一些建议 如何做到这一点对我来说非常有用。
我听说如果请求通过代理,会更安全。如果我的服务器地址是(182.575.069.67)并且我的代理在 192.168.0.8 中运行,那么我所有的客户端都必须将其消息发送到代理,并且代理服务器必须转发这到实际的服务器。这就是我想要做的
I am a newbie in remoting concepts(C# Remoting).Actually i done some projects using
remoting concepts, i need to employ a proxy between the client and server , if client
wants to communicate with the server or vice-versa it should be done through this proxy
only.i saw a namespace Remoting.Proxy ,will it help? anyone giveme some suggestions on
how to do this it will be very useful for me.
I heard that if the request is through proxy it will be more secure.if my server address is(182.575.069.67) and my proxy runs in 192.168.0.8 then all my clients must send their messages to the proxy and the proxy server must forward this to the actual server.This is what i am trying to do
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“Proxy”命名空间指的是需要有一个本地对象,为远程客户端提供代理工作。
如果您需要所有到服务器的流量都通过代理,您应该创建两个可执行文件:服务器和代理服务器。
服务器只能接受来自代理服务的请求,而代理服务本身可能是混杂的。
但是,我不确定为什么您需要设置代理服务,因为无论如何您应该能够将任何授权/身份验证代码直接放入服务器服务中。
The "Proxy" namespace refers to the idea that there needs to be a local object, working en-proxy for the remoting client.
If you need all traffic to the server to go through a proxy, you should create two executables: the server, and the proxy server.
The server could accept requests only from the proxy service, while the proxy service itself could be promiscuous.
However, I'm not sure why you would need to set up a proxy service, since you should be able to put any of your autorization / authentication code directly into the server service anyways.
C# 中的代理(尤其是 System.Remoting 命名空间中的代理)是本地进程内对象,代表不同进程中的对象。
它们以代理对象模式命名,而不是以代理服务器命名。
Proxies in C# (especially in the System.Remoting namespace) are local, in-process objects that represent an object in a different process.
They're named after the Proxy Object pattern, not after proxy servers.