是否可以像通过Socket类一样侦听WCF中的指定套接字并将数据发送到客户端? [英] Is it possible to listen to the specified socket in WCF and send data to the client as like as we do via Socket class?

查看:44
本文介绍了是否可以像通过Socket类一样侦听WCF中的指定套接字并将数据发送到客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

是否可以像通过Socket类一样侦听WCF中的指定套接字并将数据发送到客户端?

Is it possible to listen to the specified socket in WCF and send data to the client as like as we do via Socket class?

谢谢.

推荐答案

嗨Rainmater,

Hi Rainmater,

如果您想通过Socket监听特定的端口或社区,那是不可能的. WCF不用于侦听特定的端口,它侦听特定的地址,并且它需要客户端以SOAP格式发送请求.

If you mean you want to listen to specific port or community with Socket, it is impossible. WCF is not used to listen on specific port, it listens on specific address, and it needs client to send request with SOAP format.

套接字客户端和WCF客户端不同.

Socket client and WCF Client are different.

最好的问候,

爱德华


这篇关于是否可以像通过Socket类一样侦听WCF中的指定套接字并将数据发送到客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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