使用python和twisted聊天彗星网站 [英] Chat comet site using python and twisted

查看:34
本文介绍了使用python和twisted聊天彗星网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立一个类似于 www.omegle.com 的网站.任何人都可以给我一些想法.我认为它是使用扭曲的轨道器彗星服务器构建的.

i want to build a site similar to www.omegle.com. can any one suggest me some ideas. I think its built usning twisted , orbiter comet server.

推荐答案

Twisted 是一个不错的选择.几年前,我使用它为我编写的基于浏览器的在线游戏构建了一个服务器——它跟踪客户端,为他们提供对 Ajax 请求的回复,并且还使用了 HTML5 服务器发送的 DOM 事件.得益于 Twisted 良好的 HTTP 库,工作相当轻松.

Twisted is a good choice. I used it a few years ago to build a server for a browser-based online game I wrote - it kept track of clients, served them replies to Ajax requests, and used HTML5 Server-Sent DOM Events as well. Worked rather painlessly thanks to Twisted's good HTTP library.

对于 Python 网络框架,我个人更喜欢 Django.使用它很快,并且它具有很多开箱即用的功能(我认为包含电池",正如他们在他们的网站上所说的那样).塔架是另一个受欢迎的选择.

For a Python web framework, I personally favor Django. It's quick to get going with it, and it has a lot of functionality out of the box ("batteries included" as it says on their site I think). Pylons is another popular choice.

这篇关于使用python和twisted聊天彗星网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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