回调和防火墙注意事项

回调和防火墙注意事项

本文介绍了回调和防火墙注意事项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 嗨*,我想描述一个我想要实现的场景,如果可能,有人可以提出配置。我有一台服务器需要向相当数量的客户端发送通知(比如说100个客户端,每2分钟发送一次通知)。我不希望客户轮询以获取信息。我的服务器应该在 IIS 6或更新版本下运行。客户端可以位于Internet上的任何位置,可能位于路由器和防火墙之后。或多或少可以说我想实现Live Messenger场景,但通知将从服务器发送到客户端,从客户端发送到服务器(不是客户端之间的点对点)。我发现wsDualHttpBinding不能使用,因为它需要修改客户端防火墙才能打开某个特定的端口。任何想法? Dimitris Papadimitriou,软件开发专业人员解决方案 首先,此论坛不适用于WCF查询。有一个特定的 WCF论坛。 那说,用在您的情况下,您需要一个支持双工的非双重(因为NAT)绑定(因为通知客户端,而不是轮询)。唯一开箱即用的WCF解决方案是netTCPBinding,它不使用HTTP,所以我不知道它是否可以用于IIS。 -Steve Hi*,I would like to describe a scenario I would like to achieve and if possible somebody can propose a configuration. I have a server that needs to send notifications to a considerable number of clients (say 100 clients, 1 notification per 2 minutes). I don't want clients to poll to get the information. My server should run under IIS 6 or newer. Clients can be anywhere on the Internet, maybe behind routers and firewalls. More or less lets say I want to achieve the Live Messenger scenario but notifications will be send from server to client and from client to server (not peer-to-peer between clients).I discovered that wsDualHttpBinding cannot be used because it requires modifications on the client firewall to open some specific port.Any ideas?Dimitris Papadimitriou, Software Development Professional 解决方案 First off, this forum is not for WCF queries. There is a specific WCF forum.That said, with your situation, you need a non-dual (because of the NATs) binding that supports duplex (because the clients are notified, not polling). The only out-of-the-box WCF solution is netTCPBinding, which doesn't use HTTP so I don't know if it can be used with IIS.       -Steve 这篇关于回调和防火墙注意事项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-06 04:02