是否有网络套接字的WCF服务器实现形式HTML 5? [英] Is there a WCF server implementation of Web Sockets form HTML 5?

查看:142
本文介绍了是否有网络套接字的WCF服务器实现形式HTML 5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在浏览器(很快火狐)的新的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.

这篇关于是否有网络套接字的WCF服务器实现形式HTML 5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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