简体   繁体   English

使用WCF中的一个传入端口可以进行双工绑定吗?

[英]Duplex binding possible with ONE incoming port in WCF?

Is duplex binding possible with having ONE single port open for incoming connections in WCF? 通过在WCF中为传入连接打开一个单一端口,是否可以进行双工绑定?

quoted from another question in SO... "I am making a business specific messaging application, it is going to connect between 5000 and 10,000 machines back to our datacenter via WCF (no vpns, all over the net). It is mainly for alerts and I need to be able to send message direclty to specific clients" 引用了SO中的另一个问题...“我正在开发一个特定于业务的消息传递应用程序,它将通过WCF将5000到10,000台计算机之间连接回我们的数据中心(无VPN,整个网络)。主要用于警报而且我需要能够向特定客户发送邮件直接通知”

That's the same way my application works.I can't make every user do port forwarding to open ports on their clients. 这与我的应用程序的工作方式相同。我不能让每个用户都进行端口转发以打开其客户端上的端口。 (But,I can open ports on the server) (但是,我可以在服务器上打开端口)

So,Is this possible? 那么,这可能吗?

Yes it is, 是的,
and you could use Duplex WCF over HTTP on port 80 for doing so, as in this example 并且您可以在端口80上通过HTTP使用Duplex WCF,如本例所示

http://tomasz.janczuk.org/2009/09/scale-out-of-silverlight-http-polling.html http://tomasz.janczuk.org/2009/09/scale-out-of-silverlight-http-polling.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM