简体   繁体   English

如何通过Net.TCP WCF绑定使用简单的TCP / IP套接字连接?

[英]How to use simple TCP/IP sockets connection over Net.TCP WCF binding?

How to use simple TCP/IP sockets connections over/with Net.TCP WCF binding? 如何通过/通过Net.TCP WCF绑定使用简单的TCP / IP套接字连接?
Idea is – We have a web service with Net.TCP binding on some URL, port. 想法是–我们有一个在某些URL,端口上绑定了Net.TCP的Web服务。 We want to take advantage of the WCF address model and simplicity of socket connections. 我们想利用WCF地址模型和套接字连接的简单性。
So can we use simple TCP/IP sockets connection over/with Net.TCP WCF binding? 那么我们是否可以通过Net.TCP WCF绑定使用简单的TCP / IP套接字连接?

If yes. 如是。 What do I need? 我需要什么?

  • MSDN if there is any help on this. MSDN上是否有任何帮助。
  • Open Source Libs/wrappers. 开源库/包装器。
  • Tutorials and blog articles on How to do it. 有关如何做的教程和博客文章。


If no : I need know where did you get the information from (link to MSDN or other official WCF information resource). 如果不是 :我需要知道您从哪里获得信息(链接到MSDN或其他官方WCF信息资源)。

I think you are looking for this - How to use socket based client with WCF (net.tcp) service? 我认为您正在寻找- 如何将基于套接字的客户端与WCF(net.tcp)服务一起使用?

The way I see it you want to feed from wcf service with a socket object (correct me if I got it wrong)... I haven't done it (just read it) 我想用套接字对象从wcf服务中获取数据的方式(如果我输入错了,请纠正我)...我还没有做(只是读过)

It is possible to do this, but you would need to implement the .NET Message Framing Protocol used by NetTcpBinding. 可以这样做,但是您需要实现NetTcpBinding使用的.NET消息框架协议。 Documentation is here: http://msdn.microsoft.com/en-us/library/cc219293(PROT.10).aspx 文档在这里: http : //msdn.microsoft.com/zh-cn/library/cc219293(PROT.10).aspx

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

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