是否有网络套接字的WCF服务器实现形式HTML 5?形式、服务器、网络、HTML

2023-09-05 02:32:26 作者:执念@

我想在浏览器(很快火狐)的新的Web插槽支持玩,但一直未能找到一个WCF实现,将作为服务器。

I would like to play with the new Web Socket support in Chrome (and soon Firefox), but have been unable to find a WCF implementation that will act as the server.

曾经有人实施了一个.NET WCF的Web插座的服务器?

Have somebody implemented a .net WCF Web Socket based server?

推荐答案

在Web插座的协议规范是如此简单,你可以实现一个服务器,在几个小时玩。假设你已经有一个TCP服务器组件,它执行的握手只是一个问题(响应客户端请求),然后接收或TCP发送数据帧。

The Web Socket protocol specification is so simple that you could implement a server to play with in a couple of hours. Assuming that you already have a TCP server component, it's just a matter of implementing the handshake (respond to a client request) and then receiving or sending data frames over TCP.

我用Delphi中实现协议和聊天服务器/客户端的例子;你可以得到源$ C ​​$ C 这里。它不应该是很难将它翻译到.NET。

I used Delphi to implement the protocol and a chat server/client example; you can get the source code here. It shouldn't be very hard to translate it to .NET.

 
精彩推荐
图片推荐