简体   繁体   English

在.Net中提供二进制协议。 使用WCF? IIS?

[英]Serving a binary protocol in .Net. Use WCF? IIS?

I need to write a server that will handle a binary protocol with TLS. 我需要编写一个服务器来处理带有TLS的二进制协议。 Nothing to do with HTTP or SOAP. 与HTTP或SOAP无关。 But it needs to be able to accept incoming connections, with client certificates, maybe pooling, and provide responses. 但它需要能够接受传入的连接,使用客户端证书,可能汇集并提供响应。 Ideally could also post messages back to the client asynchronously but not a requirement. 理想情况下,也可以异步将消息发送回客户端,但不是必需的。

Can this be done with a special IIS plug in? 这可以通过特殊的IIS插件来完成吗? or with WCF? 还是与WCF? Or is it best done by just listening on a raw socket? 或者最好只通过监听原始套接字来完成?

Edit. 编辑。 To be clear, this is a binary protocol that is well defined by an industry standard. 需要明确的是,这是一个由行业标准明确定义的二进制协议。 I do not want any software to interpret it, package things into objects etc. I just want to have a listener send bytes sent by a client to a class and then send them back. 我不希望任何软件解释它,将东西打包成对象等。我只想让一个监听器将客户端发送的字节发送给一个类然后再将它们发送回来。

我认为Remoting可以帮助你,你可以建立自己的频道

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

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